git ssb

0+

k4ml / belajar-js



Commit 23c62560f4f1cd6075000b3130921bf2cedd2249

Add feature to specify level 1/2/3 for article

Ikhwan Hayat committed on 1/23/2015, 10:52:02 AM
Parent: 62adfbdf3f2022b5ff989405be6bf8370cd9c0d4

Files changed

_includes/level.htmladded
_layouts/post.htmlchanged
_includes/level.htmlView
@@ -1,0 +1,12 @@
1+{% if page.level %}
2+<span>
3+&middot; Aras
4+{% if page.level == 1 %}
5+ Asas
6+{% else if page.level == 2 %}
7+ Pertengahan
8+{% else if page.level == 3 %}
9+ Lanjutan
10+{% endif %}
11+</span>
12+{% endif %}
_layouts/post.htmlView
@@ -7,9 +7,10 @@
77 {% endif %}
88
99 <div class="post">
1010 <h1 class="post-title">{{ page.title }}</h1>
11- <span class="post-date">{{ page.date | date_to_string }}</span>
11+
12+ <div class="post-date">{{ page.date | date_to_string }}{% include level.html %}</div>
1213 {{ content }}
1314 </div>
1415
1516 {% assign author = site.authors[page.author] %}

Built with git-ssb-web