feat: add rss link to header
This commit is contained in:
parent
7d249c573f
commit
6b00ac4d91
@ -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"
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user