From 7d9fa7b11b28f985d07a48bc843e3d10031478f1 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 5 Apr 2024 18:57:06 -0500 Subject: update RSS URL and remove unused image tag --- theme/templates/atom.xml | 42 ------------------------------------------ theme/templates/blog.html | 2 +- theme/templates/feed.xml | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 43 deletions(-) delete mode 100644 theme/templates/atom.xml create mode 100644 theme/templates/feed.xml (limited to 'theme/templates') diff --git a/theme/templates/atom.xml b/theme/templates/atom.xml deleted file mode 100644 index 8ff1e30..0000000 --- a/theme/templates/atom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - {{ site_name | default("Simple Blog") }} - - {{ url_for("index") }} - - en - {{ posts | first | getattr("date") | strftime("%a, %d %b %Y %H:%M:%S %z") }} - {{ now() | strftime("%a, %d %b %Y %H:%M:%S %z") }} - {{ meta.generator }} - {{ site_owner | default("hello@cleberg.net") }} - - {{ url_for("index") }}media/img/8bitme.png - Blog Author - {{ url_for("index") }} - - - {% for post in posts %} - - {{ post.title }} - {{ url_for("blog", slug=post.slug) }} - {{ post.author|default("hello@cleberg.net") }} - {{ url_for("blog", slug=post.slug) }} - {{ post.date|strftime("%a, %d %b %Y %H:%M:%S %z") }} - - - {% endfor %} - - - diff --git a/theme/templates/blog.html b/theme/templates/blog.html index d54417b..b3b3a3f 100644 --- a/theme/templates/blog.html +++ b/theme/templates/blog.html @@ -4,7 +4,7 @@ {% block main %}

Blog

Use Ctrl + F to search blog post titles for keywords.

-

You can also add the RSS Feed to your feed reader.

+

You can also add the RSS Feed to your feed reader.

{% for post in posts %}
diff --git a/theme/templates/feed.xml b/theme/templates/feed.xml new file mode 100644 index 0000000..d3f25db --- /dev/null +++ b/theme/templates/feed.xml @@ -0,0 +1,37 @@ + + + + {{ site_name | default("Simple Blog") }} + + {{ url_for("index") }} + + en + {{ posts | first | getattr("date") | strftime("%a, %d %b %Y %H:%M:%S %z") }} + {{ now() | strftime("%a, %d %b %Y %H:%M:%S %z") }} + {{ meta.generator }} + {{ site_owner | default("hello@cleberg.net") }} + + {% for post in posts %} + + {{ post.title }} + {{ url_for("blog", slug=post.slug) }} + {{ post.author|default("hello@cleberg.net") }} + {{ url_for("blog", slug=post.slug) }} + {{ post.date|strftime("%a, %d %b %Y %H:%M:%S %z") }} + + + {% endfor %} + + + -- cgit v1.2.3-70-g09d2