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

github.com/shaform/hugo-theme-den.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaform <shaform@gmail.com>2018-07-16 12:23:25 +0300
committerShaform <shaform@gmail.com>2018-07-16 12:23:25 +0300
commit8471f5d76a669e078b5e97f7e79d7891e10313a1 (patch)
tree53dca59f7bdce7ad71a475414bf5a3201d1099a3
parenta5aace1052d636438ddd774c8b17f6b515e810ee (diff)
add RSS link
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5458ebf..79abbdd 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -31,6 +31,10 @@
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
{{ end }}
+{{ if .RSSLink }}
+<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+{{ end }}
+
{{/* https://gohugo.io/templates/internal/ */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}