summaryrefslogtreecommitdiff
path: root/templates/feed.html
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2025-04-19 21:43:53 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2025-04-19 21:43:53 +0100
commit96d437baab4a622eb540719feb90ea810fb01756 (patch)
tree8757d41e9e2c673965483b2466ae306c9a7b8368 /templates/feed.html
parentea523d411689338876abd7b87d85164009e7ec73 (diff)
downloadblog-96d437baab4a622eb540719feb90ea810fb01756.tar.gz
blog-96d437baab4a622eb540719feb90ea810fb01756.tar.bz2
blog-96d437baab4a622eb540719feb90ea810fb01756.zip
Add support for atom / rss feedHEADmaster
Date format was changed to support `updated` in ISO format. Now every post will require date and time, which might be a usability regression, but we'll see. Also, `updated` field was introduced in metadata. If there is no such field, them date field will be used instead.
Diffstat (limited to 'templates/feed.html')
-rw-r--r--templates/feed.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/feed.html b/templates/feed.html
index deb89c5..e17d3d0 100644
--- a/templates/feed.html
+++ b/templates/feed.html
@@ -28,8 +28,8 @@
<li>
<span>
<i>
- <time datetime="{{ post.metadata.date }}" pubdate>
- {{ post.metadata.date }}
+ <time datetime="{{ post.metadata.date.strftime('%Y-%m-%d') }}" pubdate>
+ {{ post.metadata.date.strftime('%Y-%m-%d') }}
</time>
</i>
</span>
@@ -41,6 +41,9 @@
</content>
</main>
+<footer>
+ <small><p><a class="rss" href="/atom.xml">Atom / RSS</a></p><small>
+</footer>
</body>
</html>