diff options
author | Leon Rosenshein <leonrosn@amazon.com> | 2022-09-01 18:40:26 +0300 |
---|---|---|
committer | Leon Rosenshein <leonrosn@amazon.com> | 2022-09-01 18:40:26 +0300 |
commit | e5679f290414f3df6cf0df9c0700447e075daf84 (patch) | |
tree | 83866589450d39ee22231af10fa7a3c024746e48 | |
parent | dcf9dd1ebee17eae420e091516ffd0d58c5a1830 (diff) |
Make atom link optional since there is no atom feed in the default template
-rw-r--r-- | layouts/partials/header.html | 2 |
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 }} |