From 9099a029e610782642de8f848e1ef91df21e56b1 Mon Sep 17 00:00:00 2001 From: Chris Douglass Date: Thu, 11 Jun 2015 13:20:43 -0500 Subject: Change .BaseUrl to .BaseURL Hugo adopted golint initialism formatting with: https://github.com/spf13/hugo/pull/969 Hugo 0.14 throws an error saying compatibility with the old capitalizations will be removed in 0.15 This change was produced with a quick and dirty `grep -Irl BaseUrl | xargs ser -i -e "s/BaseUrl/BaseURL"` --- layouts/_default/single.html | 2 +- layouts/partials/content.html | 2 +- layouts/partials/footer.html | 4 ++-- layouts/partials/header.html | 24 ++++++++++++------------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 006f932..61460f2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ partial "header.html" . }} -{{ $baseurl := .Site.BaseUrl }} +{{ $baseurl := .Site.BaseURL }}
diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 2eda591..97db764 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,4 +1,4 @@ -{{ $baseurl := .Site.BaseUrl }} +{{ $baseurl := .Site.BaseURL }}
{{range $index, $page := .Paginator.Pages}} {{ if and (modBool $index 3) (ne 0 $index) }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 28aabe0..08f812c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,8 +6,8 @@
- - + + {{with .Site.Params.googleAnalyticsUserID }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 496ec41..94e5ff7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,14 +4,14 @@ {{ .Title }} - - + + @@ -19,32 +19,32 @@
-

{{.Site.Title}}

+

{{.Site.Title}}

{{.Site.Params.description}}
{{if .Site.Params.github}} - + {{end}} {{if .Site.Params.facebook}} - + {{end}} {{if .Site.Params.twitter}} - + {{end}} {{if .Site.Params.gplus}} - + {{end}} - +
{{if .Site.Params.headerCover}} - + {{else}} - + {{end}}
-- cgit v1.2.3