diff options
Diffstat (limited to 'posts')
-rw-r--r-- | posts/feed.njk | 1 | ||||
-rw-r--r-- | posts/history.njk | 2 | ||||
-rw-r--r-- | posts/index.njk | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/posts/feed.njk b/posts/feed.njk index 1ad22fa..fc3abd7 100644 --- a/posts/feed.njk +++ b/posts/feed.njk @@ -23,6 +23,7 @@ <entry> <title>{{ post.data.title }}</title> <link href="{{ absolutePostUrl }}"/> + {% set postDate = post.date.setUTCHours(7) -%} <updated>{{ post.date | dateToRfc3339 }}</updated> <id>{{ absolutePostUrl }}</id> <content type="html"><![CDATA[{{ post | excerpt | htmlToAbsoluteUrls(absolutePostUrl) | demark | safe }}<p><a href="{{ absolutePostUrl }}">Read the full post online</a></p>]]></content> diff --git a/posts/history.njk b/posts/history.njk index 76fbcd0..c3cdc50 100644 --- a/posts/history.njk +++ b/posts/history.njk @@ -16,6 +16,8 @@ <hr> <section> <h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2> + {%- set postDate = post.date.toISOString().slice(0,10) %} + <p class="post-date"><time datetime="{{ postDate }}">{{ postDate }}</time></p> {{ post | excerpt | safe }} </section> {% endfor %} diff --git a/posts/index.njk b/posts/index.njk index f695075..64ea7a6 100644 --- a/posts/index.njk +++ b/posts/index.njk @@ -13,6 +13,8 @@ {% set post = collections.all.slice(-1)[0] -%} <h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2> + {%- set postDate = post.date.toISOString().slice(0,10) %} + <p class="post-date"><time datetime="{{ postDate }}">{{ postDate }}</time></p> {{ post.templateContent | fixAnchors(post.url) | safe }} |