diff --git a/ci/travis-blog-update.sh b/ci/travis-blog-update.sh index 7ae44143..65f4a2e2 100644 --- a/ci/travis-blog-update.sh +++ b/ci/travis-blog-update.sh @@ -26,8 +26,6 @@ git config user.email "travis-update-bot@phil-opp.com" # update blog rm -r * cp -r ../public/. . -rm atom.xml # remove feed that includes all content types -mv post/atom.xml . # use post feed as main feed rm -r post post.html page page.html additional-resource additional-resource.html # remove per-category pages/feeds # commit diff --git a/layouts/rss.xml b/layouts/rss.xml new file mode 100644 index 00000000..06575193 --- /dev/null +++ b/layouts/rss.xml @@ -0,0 +1,24 @@ + + + {{ .Site.Title }} + {{ .Permalink }} + Recent content on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + + {{ range first 15 (where .Data.Pages "Section" "post") }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + +