diff --git a/layouts/_default/index.rss.xml b/layouts/_default/index.rss.xml new file mode 100644 index 0000000..b67fd9c --- /dev/null +++ b/layouts/_default/index.rss.xml @@ -0,0 +1,27 @@ + + + {{ .Site.Title }} + {{ .Site.BaseURL }} + {{ .Site.Params.Description }} + Hugo + {{ .Site.LanguageCode }} + {{ .Site.Params.Author.name }} + {{ .Site.Params.Author.name }} + {{ .Site.Params.Author.name }} + {{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} + + + {{ range where .Site.Pages "Type" "weekly" }} + + {{ .Title }} + {{ .Permalink }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} + + {{ .Content | truncate 350 | html }} + + + + {{ end }} + + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 328b954..f685a49 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,10 +7,10 @@ - - - - + + + + @@ -23,6 +23,10 @@ +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} +