Commit 23c62560f4f1cd6075000b3130921bf2cedd2249
Add feature to specify level 1/2/3 for article
Ikhwan Hayat committed on 1/23/2015, 10:52:02 AMParent: 62adfbdf3f2022b5ff989405be6bf8370cd9c0d4
Files changed
_includes/level.html | added |
_layouts/post.html | changed |
_includes/level.html | ||
---|---|---|
@@ -1,0 +1,12 @@ | ||
1 | +{% if page.level %} | |
2 | +<span> | |
3 | +· 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.html | ||
---|---|---|
@@ -7,9 +7,10 @@ | ||
7 | 7 | {% endif %} |
8 | 8 | |
9 | 9 | <div class="post"> |
10 | 10 | <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> | |
12 | 13 | {{ content }} |
13 | 14 | </div> |
14 | 15 | |
15 | 16 | {% assign author = site.authors[page.author] %} |
Built with git-ssb-web