Skip to content

Commit

Permalink
feat: add rss link to header
Browse files Browse the repository at this point in the history
  • Loading branch information
vividvilla committed Apr 20, 2019
1 parent 7d249c5 commit 6b00ac4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 6b00ac4

Please sign in to comment.