diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a876117..2626b00 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -4,6 +4,7 @@ languageCode = "en-US" disqusShortname = "" paginate = 6 #SectionPagesMenu = "main" +canonifyurls = true [params] title = "Hugo Casper Two" diff --git a/layouts/404.html b/layouts/404.html index 4b95779..0407c2b 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -10,7 +10,7 @@
-
+
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 497c8b1..0718bae 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,7 +9,7 @@ - + {{ if .IsPage }} {{ else }} @@ -21,11 +21,11 @@ {{ .Hugo.Generator }} {{ "" | safeHTML }} - - + + - {{ range .Site.Params.customCSS }} {{ end }} + {{ range .Site.Params.customCSS }} {{ end }} - {{ if .Site.Params.RSSLink}} {{else}}{{ if eq .URL "/" }} {{ end }} {{ end }} + {{ if .Site.Params.RSSLink}} {{else}}{{ if eq .URL "/" }} {{ end }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f58a67f..3507ec4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,8 +1,8 @@ -
diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 4c00f7d..6637a1e 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -1,6 +1,6 @@ - + diff --git a/layouts/partials/meta-facebook.html b/layouts/partials/meta-facebook.html index 51ac3ef..ad86bc8 100644 --- a/layouts/partials/meta-facebook.html +++ b/layouts/partials/meta-facebook.html @@ -12,6 +12,6 @@ {{ end }}{{if .Params.image }} - + {{else}}{{if .Site.Params.cover}} - {{end}}{{end}} \ No newline at end of file + {{end}}{{end}} \ No newline at end of file diff --git a/layouts/partials/meta-twitter.html b/layouts/partials/meta-twitter.html index c82a554..37c6d6a 100644 --- a/layouts/partials/meta-twitter.html +++ b/layouts/partials/meta-twitter.html @@ -1,13 +1,13 @@ {{ if .IsPage }} {{ with .Params.image }} - + {{ else }} {{ end }} {{ else }} - {{ with .Site.Params.cover }}{{ end }} + {{ with .Site.Params.cover }}{{ end }} {{ end }} diff --git a/layouts/partials/page-single.html b/layouts/partials/page-single.html index 02544d3..c99f7cc 100644 --- a/layouts/partials/page-single.html +++ b/layouts/partials/page-single.html @@ -1,11 +1,11 @@
{{if .Params.image}} -
+
{{else}} -
+
{{end}} diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 072d18c..50a80a0 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -4,11 +4,11 @@ diff --git a/layouts/partials/post-single.html b/layouts/partials/post-single.html index f764980..9dd0627 100644 --- a/layouts/partials/post-single.html +++ b/layouts/partials/post-single.html @@ -1,11 +1,11 @@ \ No newline at end of file