Formatting and cleanup

This commit is contained in:
2024-11-11 21:36:33 +00:00
parent 232599a7f8
commit 8adccc6f95
30 changed files with 142 additions and 117 deletions

View File

@@ -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>