Created
August 4, 2015 14:44
-
-
Save zhuixinjian/9475eae0f2ae658c2d89 to your computer and use it in GitHub Desktop.
post.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <article class="post-content"> | |
| {{ content }} | |
| {% assign category = site.data.categories[page.category] %} | |
| <p id="post-meta">Posted | |
| {% if category == null %} | |
| {% assign category = page.category %} | |
| {% endif %} | |
| in <code><a href="/blog/category/#{{ page.category }}">{{ category }}</a></code> | |
| {% assign tag_size = page.tags.size %} | |
| {% if tag_size > 0 %} | |
| with tag:<i class="fa fa-tags"></i> | |
| {% for post_tag in page.tags %} | |
| <a href="/blog/tags/#{{post_tag}}">{{ post_tag }}</a>{% if forloop.last == false %},{% endif %} | |
| {% endfor %} | |
| {% endif %}</p> | |
| </article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment