Bug fix for rss links for site and sections.

This commit is contained in:
Fredrik Jonsson 2017-03-21 00:18:05 +01:00
commit 7043ce8aa5
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,9 @@
{{ define "title" }}{{ if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{ end }}{{ end }}
{{ define "meta" }}
{{ partial "section_meta.html" . }}
{{ end }}
{{ define "main" }}
<main class="layout-3col__left-content" role="main">
{{ range .Data.Pages }}

View file

@ -6,5 +6,5 @@
<link rel="canonical" href="{{ .Permalink }}">
<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">
{{ 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 }}

View file

@ -0,0 +1 @@
{{ if .RSSLink }}<link rel="alternate" type="application/rss+xml" title="{{ .Title }} - {{ .Site.Title }}" href="{{ .RSSLink }}">{{ end }}