summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-09-08 22:51:57 -0600
committerAnthony Fok <foka@debian.org>2015-09-08 22:51:57 -0600
commitcf7318a057770387a9869cd16d8b849cb790196d (patch)
tree2b598889a9b7332e0d0d6768da52505006052d46 /examples
parentcec9054bb81603fde5d063f9eeb8efef6ac33389 (diff)
Convert example/blog to use new syntax for Hugo v0.14+
safeHtml → safeHTML, .Site.BaseUrl → .Site.BaseURL (Hmm... How did we miss that earlier?)
Diffstat (limited to 'examples')
-rw-r--r--examples/blog/layouts/partials/header.html2
-rw-r--r--examples/blog/layouts/partials/navbar.html4
-rw-r--r--examples/blog/layouts/sitemap.xml2
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 @@
<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 }}
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 @@
<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>
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 }}
<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>