From 48c577121a9b7ee5db236f80c7343a33a8152733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 9 Apr 2019 12:24:24 +0200 Subject: [PATCH] Fix deprecation warnings --- themes/gohugoioTheme/layouts/_default/baseof.html | 2 +- themes/gohugoioTheme/layouts/news/single.html | 8 ++++---- .../layouts/partials/boxes-section-summaries.html | 2 +- .../gohugoioTheme/layouts/partials/boxes-small-news.html | 2 +- themes/gohugoioTheme/layouts/partials/entry-summary.html | 2 +- themes/gohugoioTheme/layouts/partials/page-header.html | 2 +- themes/gohugoioTheme/layouts/partials/tags.html | 6 +++--- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/themes/gohugoioTheme/layouts/_default/baseof.html b/themes/gohugoioTheme/layouts/_default/baseof.html index 6c579fcfc..2411b1348 100644 --- a/themes/gohugoioTheme/layouts/_default/baseof.html +++ b/themes/gohugoioTheme/layouts/_default/baseof.html @@ -12,7 +12,7 @@ {{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} - {{ .Hugo.Generator }} + {{ hugo.Generator }} {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} diff --git a/themes/gohugoioTheme/layouts/news/single.html b/themes/gohugoioTheme/layouts/news/single.html index 33a0043d8..200daa70a 100644 --- a/themes/gohugoioTheme/layouts/news/single.html +++ b/themes/gohugoioTheme/layouts/news/single.html @@ -1,5 +1,5 @@ {{ define "main" }} - {{ $currentPageUrl := .URL }} + {{ $currentPageUrl := .RelPermalink }}
@@ -13,7 +13,7 @@ {{end}}

- + {{ .Title }}

@@ -66,9 +66,9 @@