Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian <julian@vantage-design.com>2020-11-26 11:33:00 +0300
committerGitHub <noreply@github.com>2020-11-26 11:33:00 +0300
commit824f0921e46a681be0f0f109c2366c1daea81a49 (patch)
tree2865c75b323bd606ef0f18f65479be39dd234189 /layouts
parente2ebc35b6b7071c80c167bfa1c3004d7796456f1 (diff)
parent02eaa36d8d4362ddb8a288c18a4ac9998c630854 (diff)
Merge pull request #30 from sumpfralle/rss-feed
Add RSS feed
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/header.html5
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>