mirror of
https://github.com/ckaczor/Blog.git
synced 2026-01-13 17:22:16 -05:00
Formatting and cleanup
This commit is contained in:
@@ -1,14 +1,30 @@
|
||||
{%- css %}.postlist { counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }} }{% endcss %}
|
||||
<ol reversed class="postlist">
|
||||
<ul reversed class="postlist">
|
||||
{% for post in postslist | reverse %}
|
||||
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
|
||||
<a href="{{ post.url }}" class="postlist-link">
|
||||
{% if post.data.title %}{{ post.data.title }}
|
||||
{% if post.data.title %}
|
||||
{{ post.data.title }}
|
||||
{% else %}
|
||||
<code>{{ post.url }}</code>
|
||||
{% endif %}
|
||||
</a>
|
||||
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("LLLL yyyy") }}</time>
|
||||
<span class="postlist-byline">
|
||||
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
|
||||
<ul class="postlist-tags">
|
||||
{%- for tag in post.data.tags | filterTagList %}
|
||||
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
||||
<li>
|
||||
<a href="{{ tagUrl }}" class="postlist-tag">{{ tag }}</a>
|
||||
{%- if not loop.last %}, {% endif %}
|
||||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</span>
|
||||
{{ post.data.page.excerpt | md | safe }}
|
||||
<a href="{{ post.url }}" class="postlist-read-more">
|
||||
Read more
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user