Add author block and publish dates

This commit is contained in:
Lewis Dale committed 2023-11-29 08:34:39 +00:00
1 parent e98442984b
commit 483d11b88d
6 files changed
+67 -25

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ pagination:
{% for item in pagination.items %}
<li class="stack-xs">
<h2><a href="/post/{{ item.slug }}">{{ item.title.rendered | safe }}</a></h2>
<time class="block" datetime="{{ item.date }}">{{ item.date | parseDate | dateDisplay }}</time>
<time class="block" datetime="{{ item.date | rfc3339 }}">{{ item.date | dateDisplay }}</time>
{{ item.excerpt.rendered | safe }}
<a href="/post/{{ item.slug }}" class="inline-block">Read more</a>
</li>
@@ -26,4 +26,4 @@ pagination:
<a href="{{ pagination.href.previous }}">Newer</a>
{% endif %}
</nav>
</main>
</main>
+2 -2
View File
@@ -17,10 +17,10 @@ eleventyComputed:
{% for item in tag.posts %}
<li class="stack-xs">
<h2><a href="/post/{{ item.slug }}">{{ item.title.rendered | safe }}</a></h2>
<time datetime="{{ post.date }}" class="block">{{ item.date | parseDate | dateDisplay }}</time>
<time datetime="{{ item.date | rfc3339 }}" class="block">{{ item.date | dateDisplay }}</time>
{{ item.excerpt.rendered | safe }}
<a href="/post/{{ item.slug }}" class="inline-block">Read more</a>
</li>
{% endfor %}
</ol>
</main>
</main>