Add a supressRSSLink param.
This commit is contained in:
parent
7043ce8aa5
commit
af05e3a2cd
3 changed files with 3 additions and 2 deletions
|
|
@ -60,6 +60,7 @@ params:
|
||||||
searchSize: 20 # Search field size, default 20.
|
searchSize: 20 # Search field size, default 20.
|
||||||
cacheBustCSS: true # Add a cache busting hash on styles.css
|
cacheBustCSS: true # Add a cache busting hash on styles.css
|
||||||
cacheBustJS: true # Add a cache busting hash on script.js
|
cacheBustJS: true # Add a cache busting hash on script.js
|
||||||
|
supressRSSLink: false # Do not generate rss links.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}favicon.ico" type="image/vnd.microsoft.icon">
|
<link rel="shortcut icon" href="{{ .Site.BaseURL }}favicon.ico" type="image/vnd.microsoft.icon">
|
||||||
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png">
|
||||||
{{ if .Site.RSSLink }}<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .Site.RSSLink }}">{{ end }}
|
{{ if and (.Site.RSSLink) (not .Site.Params.supressRSSLink) }}<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .Site.RSSLink }}">{{ end }}
|
||||||
{{ with .Site.Params.contact }}<meta name="contact" content="{{ . }}">{{ end }}
|
{{ with .Site.Params.contact }}<meta name="contact" content="{{ . }}">{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{{ if .RSSLink }}<link rel="alternate" type="application/rss+xml" title="{{ .Title }} - {{ .Site.Title }}" href="{{ .RSSLink }}">{{ end }}
|
{{ if and (.RSSLink) (not .Site.Params.supressRSSLink) }}<link rel="alternate" type="application/rss+xml" title="{{ .Title }} - {{ .Site.Title }}" href="{{ .RSSLink }}">{{ end }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue