myFirstSite/_layouts/post.html

15 lines
277 B
HTML
Raw Permalink Normal View History

2023-11-26 21:31:37 +00:00
---
layout: default
---
<h1>{{ page.title }}</h1>
<p>
{{ page.date | date_to_string }}
{% assign author = site.authors | where: 'short_name', page.author | first %}
{% if author %}
- <a href="{{ author.url }}">{{ author.name }}</a>
{% endif %}
</p>
{{ content }}