feat: add rss link to header

This commit is contained in:
Vivek R 2019-04-20 14:12:08 +05:30
parent 7d249c573f
commit 6b00ac4d91
2 changed files with 9 additions and 0 deletions

View File

@ -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"

View File

@ -10,6 +10,10 @@
{{- end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:500,100,300" rel="stylesheet">