From c474ce0c663dc1156a6403c603e38c1dd3793a3e Mon Sep 17 00:00:00 2001
From: Jorge Martínez López <jorgeml@jorgeml.net>
Date: Sun, 15 Sep 2019 19:12:51 +0000
Subject: [PATCH] Deprecation messages fixes. (#196)
---
layouts/_default/baseof.html | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index bf8b528..68d320b 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,7 +6,7 @@
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
<title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
- {{ .Hugo.Generator }}
+ {{ hugo.Generator }}
{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
@@ -27,9 +27,9 @@
{{ partialCached "site-favicon.html" . }}
{{ end }}
- {{ 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 }}" />
+ {{ if .OutputFormats.Get "RSS" }}
+ <link href="{{ .OutputFormats.Get "RSS" }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ <link href="{{ .OutputFormats.Get "RSS" }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
--
Gitblit v1.10.0