Skip to content

Commit

Permalink
Add tag system
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Ozgur OZKAN committed Mar 22, 2014
1 parent 385eb6e commit 0e824e0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# With alternative layout
page '/posts/*', layout: :post
page 'blog.html', layout: :posts
page 'tag/*', layout: :posts

#
# A path which all have the same layout
Expand Down Expand Up @@ -88,7 +89,7 @@
blog.sources = 'posts/{year}-{month}-{day}-{title}'
blog.default_extension = '.md'
blog.permalink = '{title}'
blog.taglink = 'tags/{tag}'
blog.taglink = 'tag/{tag}'
blog.tag_template = 'tag.html'
end

Expand Down
2 changes: 1 addition & 1 deletion source/layouts/post.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%h5= current_page.data.date.strftime('%B %e, %Y')
%ul
- current_page.data.tags.each do |tag|
%li= link_to tag, '/tags/' + tag, target: '_blank'
%li= link_to tag, '/tag/' + tag
.col-lg-10
%article
%h1= current_page.data.title
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: Kurumiçi Eğitim - Ahmet UREL - XAF ile kütüphane yazılımı
date: 2013-05-14 21:21 UTC
date: 2013-05-14
tags:
- xaf
---

Firma olarak kurum içi eğitimlerimizi artık İnternet ortamında video olarak paylaşmaya karar verdik. İlk videosunu yüklediğimiz eğitim, Ahmet UREL tarafından anlatılan, XAF ile kütüphane yazılımı konulu eğitimdir. Amacımız farklı disiplinler hakkında bilgi sahibi olmaktır.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: Sass Nedir? Özellikleri nelerdir?
date: 2014-03-03 18:03 UTC
date: 2014-03-03
tags:
- two
---

Sass genel olarak css derleyicisidir. Css sayesinde var olmuş fakat css’i teknik olarak geçmeyi başarmıştır. Nasıl geçmiş kısaca özetliyorum;
Expand Down
2 changes: 1 addition & 1 deletion source/tag.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%h1
Articles tagged '#{tagname}'
%ul
- page_articles.each_with_index do |article, i|
- page_articles.each do |article|
%li
%span= article.date.strftime('%B %e, %Y')
= link_to article.title, article

0 comments on commit 0e824e0

Please sign in to comment.