Bug fix for rss links for site and sections.
This commit is contained in:
parent
498d3baa1b
commit
7043ce8aa5
3 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
{{ define "title" }}{{ if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{ end }}{{ end }}
|
{{ define "title" }}{{ if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{ end }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "meta" }}
|
||||||
|
{{ partial "section_meta.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main class="layout-3col__left-content" role="main">
|
<main class="layout-3col__left-content" role="main">
|
||||||
{{ range .Data.Pages }}
|
{{ range .Data.Pages }}
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
{{ with .RSSLink }}<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ . }}">{{ end }}
|
{{ if .Site.RSSLink }}<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
layouts/partials/section_meta.html
Normal file
1
layouts/partials/section_meta.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{{ if .RSSLink }}<link rel="alternate" type="application/rss+xml" title="{{ .Title }} - {{ .Site.Title }}" href="{{ .RSSLink }}">{{ end }}
|
||||||
Loading…
Reference in a new issue