diff options
author | Julian <julian@vantage-design.com> | 2020-11-26 11:33:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 11:33:00 +0300 |
commit | 824f0921e46a681be0f0f109c2366c1daea81a49 (patch) | |
tree | 2865c75b323bd606ef0f18f65479be39dd234189 /layouts | |
parent | e2ebc35b6b7071c80c167bfa1c3004d7796456f1 (diff) | |
parent | 02eaa36d8d4362ddb8a288c18a4ac9998c630854 (diff) |
Merge pull request #30 from sumpfralle/rss-feed
Add RSS feed
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 5 | ||||
-rw-r--r-- | layouts/partials/header.html | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1673635..1ed4145 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,8 +1,11 @@ <head> <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + {{ range .AlternativeOutputFormats -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} <link rel="canonical" href="{{ .Permalink }}"> <title> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 61e9479..eca14c9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -29,4 +29,9 @@ </div> {{- end}} </div> + {{ with .OutputFormats.Get "rss" -}} + <div class="feed-icons"> + <a href=".Permalink"><img src="/img/feed-icon.svg" alt="RSS feed" /></a> + </div> + {{ end -}} </nav> |