From 3806601ac59e0a4bf200e384e182ff98bb6d8045 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 2 Mar 2021 13:36:19 -0600 Subject: [PATCH] Add atom feed --- _includes/head/custom.html | 3 ++- feed.xml | 31 +++++++++++++++++++++++++++++++ index.md | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 feed.xml diff --git a/_includes/head/custom.html b/_includes/head/custom.html index 5b17d3f..d3f00b4 100644 --- a/_includes/head/custom.html +++ b/_includes/head/custom.html @@ -1 +1,2 @@ - \ No newline at end of file + + diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..8cfb56d --- /dev/null +++ b/feed.xml @@ -0,0 +1,31 @@ +--- +layout: +--- + + + + + {{ site.title | xml_escape }} + {{ site.description | xml_escape }} + {{ site.url }}{{ site.baseurl }}/ + + {{ site.time | date_to_rfc822 }} + {{ site.time | date_to_rfc822 }} + Jekyll v{{ jekyll.version }} + {% for post in site.posts limit:50 %} + + {{ post.title | xml_escape }} + {{ post.content | xml_escape }} + {{ post.date | date_to_rfc822 }} + {{ post.url | prepend: site.baseurl | prepend: site.url }} + {{ post.url | prepend: site.baseurl | prepend: site.url }} + {% for tag in post.tags %} + {{ tag | xml_escape }} + {% endfor %} + {% for cat in post.categories %} + {{ cat | xml_escape }} + {% endfor %} + + {% endfor %} + + diff --git a/index.md b/index.md index 952ab90..0dabd00 100644 --- a/index.md +++ b/index.md @@ -61,4 +61,5 @@ layout: default {%- endif -%} + Atom feed