Various Fix and added support for Hugo 0.55

This commit is contained in:
Giuseppe Pignataro
2019-05-05 10:25:43 +02:00
parent 8b49c5eaa2
commit fc248e808b
8 changed files with 62 additions and 14 deletions

View File

@@ -31,9 +31,9 @@
</title>
<meta name="title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end}}">
{{ partial "css" . }}
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ with .OutputFormats.Get "RSS" }}
<link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}">
<link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}">
{{ end }}
{{- template "_internal/twitter_cards.html" . }}
{{ partial "seo_schema" . }}
@@ -45,3 +45,4 @@
{{ end }}
{{ end }}
{{ .Scratch.Set "cdn_url" $cdn_url }}