From: Anthony Fok Date: Wed, 9 Sep 2015 04:51:57 +0000 (-0600) Subject: Convert example/blog to use new syntax for Hugo v0.14+ X-Git-Tag: v0.15~182 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cf7318a057770387a9869cd16d8b849cb790196d;p=brevno-suite%2Fhugo Convert example/blog to use new syntax for Hugo v0.14+ safeHtml → safeHTML, .Site.BaseUrl → .Site.BaseURL (Hmm... How did we miss that earlier?) --- diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html index edb72dd3..a3042e0a 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 c4ef8233..b15c2463 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 2cc76081..8eb623b8 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 }}