shithub: hugo

Download patch

ref: cf7318a057770387a9869cd16d8b849cb790196d
parent: cec9054bb81603fde5d063f9eeb8efef6ac33389
author: Anthony Fok <[email protected]>
date: Tue Sep 8 18:51:57 EDT 2015

Convert example/blog to use new syntax for Hugo v0.14+

safeHtml → safeHTML, .Site.BaseUrl → .Site.BaseURL

(Hmm... How did we miss that earlier?)

--- a/examples/blog/layouts/partials/header.html
+++ b/examples/blog/layouts/partials/header.html
@@ -3,7 +3,7 @@
 <head>
     {{ partial "meta.html" . }}
 
-    <title>{{ .Title }} - {{ .Site.BaseUrl }}</title>
+    <title>{{ .Title }} - {{ .Site.BaseURL }}</title>
     <link rel="canonical" href="{{ .Permalink }}">
     {{ partial "header.includes.html" . }}
     {{ if .RSSlink }}<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
--- a/examples/blog/layouts/partials/navbar.html
+++ b/examples/blog/layouts/partials/navbar.html
@@ -7,7 +7,7 @@
                     <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                 </button>
-                <a class="navbar-brand" href="{{ .Site.BaseUrl }}">{{ .Site.Title }}</a>
+                <a class="navbar-brand" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
             </div>
             <div class="collapse navbar-collapse navbar-ex1-collapse">
                 <ul class="nav navbar-nav">
@@ -19,4 +19,4 @@
                 </ul>
             </div>
         </div>
-    </nav>
\ No newline at end of file
+    </nav>
--- a/examples/blog/layouts/sitemap.xml
+++ b/examples/blog/layouts/sitemap.xml
@@ -2,7 +2,7 @@
   {{ range .Data.Pages }}
   <url>
     <loc>{{ .Permalink }}</loc>
-    <lastmod>{{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }}
+    <lastmod>{{ safeHTML ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }}
     <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
     <priority>{{ .Sitemap.Priority }}</priority>{{ end }}
   </url>