feat: add rss link to header
This commit is contained in:
parent
7d249c573f
commit
6b00ac4d91
@ -49,5 +49,10 @@ name = "Twitter"
|
|||||||
icon = "twitter"
|
icon = "twitter"
|
||||||
url = "https://twitter.com/gohugoio"
|
url = "https://twitter.com/gohugoio"
|
||||||
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "RSS"
|
||||||
|
icon = "rss"
|
||||||
|
url = "/index.xml"
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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/opengraph.html" . -}}
|
||||||
{{- template "_internal/twitter_cards.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">
|
<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