post tags and archive
This commit is contained in:
11
blog.html
11
blog.html
@@ -7,12 +7,21 @@ title: Blog
|
||||
<ul>
|
||||
{% for post in site.posts %}
|
||||
<li>
|
||||
<h2>
|
||||
<h2 style="margin-bottom: 0.6em;">
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
<span style="font-size: 0.6em; font-style: italic; margin-left: 0.5rem;">
|
||||
{{ post.date | date: "%B %d, %Y" }}
|
||||
</span>
|
||||
</h2>
|
||||
<span style="display: block; font-size: 0.8em; font-style: italic; margin-bottom: 0.6em;">
|
||||
{%- if post.tags -%}
|
||||
{% for tag in post.tags %}
|
||||
<a href="{{ site.baseurl }}/archive.html#{{ tag | slugify }}">
|
||||
#{{ tag }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
</span>
|
||||
{{ post.excerpt }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user