From cf7318a057770387a9869cd16d8b849cb790196d Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Tue, 8 Sep 2015 22:51:57 -0600 Subject: [PATCH] Convert example/blog to use new syntax for Hugo v0.14+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit safeHtml → safeHTML, .Site.BaseUrl → .Site.BaseURL (Hmm... How did we miss that earlier?) --- examples/blog/layouts/partials/header.html | 2 +- examples/blog/layouts/partials/navbar.html | 4 ++-- examples/blog/layouts/sitemap.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html index edb72dd3f..a3042e0a9 100644 --- a/examples/blog/layouts/partials/header.html +++ b/examples/blog/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ partial "meta.html" . }} - {{ .Title }} - {{ .Site.BaseUrl }} + {{ .Title }} - {{ .Site.BaseURL }} {{ partial "header.includes.html" . }} {{ if .RSSlink }}{{ end }} diff --git a/examples/blog/layouts/partials/navbar.html b/examples/blog/layouts/partials/navbar.html index c4ef82334..b15c24630 100644 --- a/examples/blog/layouts/partials/navbar.html +++ b/examples/blog/layouts/partials/navbar.html @@ -7,7 +7,7 @@ - {{ .Site.Title }} + {{ .Site.Title }} - \ No newline at end of file + diff --git a/examples/blog/layouts/sitemap.xml b/examples/blog/layouts/sitemap.xml index 2cc760811..8eb623b8b 100644 --- a/examples/blog/layouts/sitemap.xml +++ b/examples/blog/layouts/sitemap.xml @@ -2,7 +2,7 @@ {{ range .Data.Pages }} {{ .Permalink }} - {{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}{{ with .Sitemap.ChangeFreq }} + {{ safeHTML ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}{{ with .Sitemap.ChangeFreq }} {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} {{ .Sitemap.Priority }}{{ end }}