From 7d7676b58911c8be4cc8f22c6b30459a39ad3de4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 4 Aug 2023 12:09:19 -0700 Subject: [PATCH] fix: feeds --- netlify.toml | 3 --- src/_includes/feeds/books.liquid | 4 ++-- src/_includes/feeds/feed.liquid | 4 ++-- src/_includes/feeds/follow.liquid | 4 ++-- src/_includes/feeds/links.liquid | 4 ++-- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/netlify.toml b/netlify.toml index 18c27674..14e10750 100644 --- a/netlify.toml +++ b/netlify.toml @@ -15,21 +15,18 @@ package = "@netlify/plugin-lighthouse" ### [[headers]] for = "/feed.xml" - [headers.values] Content-Type = "application/xml; charset=utf-8" x-content-type-options = "nosniff" [[headers]] for = "/links.xml" - [headers.values] Content-Type = "application/xml; charset=utf-8" x-content-type-options = "nosniff" [[headers]] for = "/books.xml" - [headers.values] Content-Type = "application/xml; charset=utf-8" x-content-type-options = "nosniff" diff --git a/src/_includes/feeds/books.liquid b/src/_includes/feeds/books.liquid index 9b535232..d9510198 100644 --- a/src/_includes/feeds/books.liquid +++ b/src/_includes/feeds/books.liquid @@ -4,8 +4,8 @@ {% block title %}Books • Cory Dransfeldt{% endblock %} - - + + {% block update %}{{ books[0].dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %} {{ site.url }} diff --git a/src/_includes/feeds/feed.liquid b/src/_includes/feeds/feed.liquid index 2ec2dc75..16b6e140 100644 --- a/src/_includes/feeds/feed.liquid +++ b/src/_includes/feeds/feed.liquid @@ -4,8 +4,8 @@ {% block title %}All posts • Cory Dransfeldt{% endblock %} - - + + {% block update %}{{ collections.posts[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %} {{ site.url }}/ diff --git a/src/_includes/feeds/follow.liquid b/src/_includes/feeds/follow.liquid index 87e33d3e..d36777c7 100644 --- a/src/_includes/feeds/follow.liquid +++ b/src/_includes/feeds/follow.liquid @@ -4,8 +4,8 @@ {% block title %}Follow • Cory Dransfeldt{% endblock %} - - + + {% block update %}{{ follow.posts[0].date_published | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %} {{ site.url }} diff --git a/src/_includes/feeds/links.liquid b/src/_includes/feeds/links.liquid index 3904e199..cf8dcf65 100644 --- a/src/_includes/feeds/links.liquid +++ b/src/_includes/feeds/links.liquid @@ -4,8 +4,8 @@ {% block title %}Links • Cory Dransfeldt{% endblock %} - - + + {% block update %}{{ links[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %} {{ site.url }}