From 575f2c07583b4a05b40bc829e83e77891c27f12f Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 16 Jun 2022 01:20:45 -0400 Subject: themes/default/layouts/partials/feeds-generate: Use last build date Set canory feed default to RFC feed. --- data/authors/canory.yaml | 3 +-- themes/default/layouts/partials/feeds-generate.html | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/data/authors/canory.yaml b/data/authors/canory.yaml index d9c8e02..fba7750 100644 --- a/data/authors/canory.yaml +++ b/data/authors/canory.yaml @@ -14,6 +14,5 @@ description: > [static site generators](https://jamstack.org/generators/). webring: rss: - - https://deno.com/feed - - https://tomcritchlow.com/feed.xml + - https://www.rfc-editor.org/rfcrss.xml json: diff --git a/themes/default/layouts/partials/feeds-generate.html b/themes/default/layouts/partials/feeds-generate.html index e826339..6189baf 100644 --- a/themes/default/layouts/partials/feeds-generate.html +++ b/themes/default/layouts/partials/feeds-generate.html @@ -58,6 +58,10 @@ {{- end -}} {{- end -}} + {{- if not $date -}} + {{- $date = .lastBuildDate -}} + {{- end -}} + {{- else -}} {{- with .link -}} -- cgit v1.2.3