From b4d56be69b28725abea2085163290d7132ee5642 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Fri, 20 Sep 2024 13:35:31 -0700 Subject: [PATCH] Add RSS feed --- _config.yml | 3 +++ _layouts/default.html | 10 ++++++++-- feed.xml | 29 +++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 _config.yml create mode 100644 feed.xml diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..e287a50 --- /dev/null +++ b/_config.yml @@ -0,0 +1,3 @@ +title: OpenNeo Blog +url: https://blog.openneo.net/ +description: For Dress to Impress, and uhh maybe other things later! diff --git a/_layouts/default.html b/_layouts/default.html index b509807..83097ed 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,8 +3,14 @@ - {{ page.title }} - OpenNeo Blog + {{ page.title }} - {{ site.title }} +
@@ -12,7 +18,7 @@

- OpenNeo Blog + {{ site.title }}

For diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..610a58e --- /dev/null +++ b/feed.xml @@ -0,0 +1,29 @@ +--- +layout: null +--- + + + + + {{ site.title }} + {{ site.url }} + + {{ site.description }} + {{ site.time | date_to_rfc822 }} + {% for post in site.posts %} + + {{ post.title }} + + {{ post.url | prepend: site.url }} + + + {{ post.content | escape }} + + {{ post.date | date_to_rfc822 }} + + {{ post.url | prepend: site.url }} + + + {% endfor %} + +