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

github.com/pravin/hugo-theme-prav.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rosenshein <leonrosn@amazon.com>2022-09-01 18:40:26 +0300
committerLeon Rosenshein <leonrosn@amazon.com>2022-09-01 18:40:26 +0300
commite5679f290414f3df6cf0df9c0700447e075daf84 (patch)
tree83866589450d39ee22231af10fa7a3c024746e48
parentdcf9dd1ebee17eae420e091516ffd0d58c5a1830 (diff)
Make atom link optional since there is no atom feed in the default template
-rw-r--r--layouts/partials/header.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3fb6ff4..a8f8180 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -29,7 +29,9 @@
rel="stylesheet">
<link rel="icon" href="/img/favicon.ico" type="image/x-icon">
+ {{ if .Site.Params.IncludeAtom -}}
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/atom.xml" />
+ {{ end -}}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ hugo.Generator }}