mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
header: Do not generate RSS links if RSS disabled (Fix #318)
This commit is contained in:
parent
3d4884a9f0
commit
bf483fcd48
1 changed files with 2 additions and 0 deletions
|
@ -64,8 +64,10 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if or .Site.RSSLink .RSSLink }}
|
||||
<link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
<link rel="feed" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
|
||||
<link rel="apple-touch-icon" type="image/png" href="{{ "/img/apple-touch-icon.png" | relURL }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue