diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e8c5c5c..eeea110 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -49,5 +49,10 @@ name = "Twitter" icon = "twitter" url = "https://twitter.com/gohugoio" +[[params.social]] +name = "RSS" +icon = "rss" +url = "/index.xml" + [taxonomies] tag = "tags" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 59bf2c9..c190cb0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,6 +10,10 @@ {{- end -}} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + {{- template "_internal/opengraph.html" . -}} {{- template "_internal/twitter_cards.html" . -}}