diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 2beeec5..486bfa4 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -18,7 +18,8 @@ {{ ((printf "") | safeHTML) }} + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"> {{ if (eq (.Title) (site.Title)) }} {{ (site.Title) }} @@ -45,6 +46,8 @@ {{ with (.OutputFormats.Get "RSS") }} {{ ((printf "" (.Permalink) (.MediaType)) | safeHTML) }} {{ end }} + hourly + 1 {{ range ($pages) }} {{ (.Title) }} @@ -53,16 +56,17 @@ {{ (.Date.UTC.Format "Mon, 02 Jan 2006 15:04:05 -0700") }} {{ range (.Params.authors) }} {{ with (site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .))) }} - {{ (.Params.email) }} ({{ (.Title) }}) + {{ if (.Params.email) }} + {{ (.Params.email) }} ({{ (.Title) }}) + {{ else }} + {{ (.Title) }} + {{ end }} {{ end }} {{ end }} {{ range (.GetTerms "categories") }} {{ (.Title) }} {{ end }} {{ (.Permalink) }} - {{ range (.GetTerms "authors") }} - {{ (.Title) }} - {{ end }} {{ end }} diff --git a/layouts/index.turbo.xml b/layouts/index.turbo.xml index e440932..37978bd 100644 --- a/layouts/index.turbo.xml +++ b/layouts/index.turbo.xml @@ -7,6 +7,7 @@ {{ ((printf "") | safeHTML) }} @@ -23,7 +24,11 @@ {{ (.Date.UTC.Format "Mon, 02 Jan 2006 15:04:05 -0700") }} {{ range (.Params.authors) }} {{ with (site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .))) }} - {{ (.Params.email) }} ({{ (.Title) }}) + {{ if (.Params.email) }} + {{ (.Params.email) }} ({{ (.Title) }}) + {{ else }} + {{ (.Title) }} + {{ end }} {{ end }} {{ end }} {{ range (.GetTerms "categories") }}