diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0718bae..821168f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,7 +18,7 @@ {{ partial "meta-twitter" . }} {{ partial "meta-facebook" . }} - {{ .Hugo.Generator }} + {{ hugo.Generator }} {{ "" | safeHTML }} @@ -26,6 +26,6 @@ {{ range .Site.Params.customCSS }} {{ end }} - {{ if .Site.Params.RSSLink}} {{else}}{{ if eq .URL "/" }} {{ end }} {{ end }} + {{ if .Site.Params.RSSLink}} {{else}}{{ if eq .Permalink "/" }}{{ .Name }} {{ end }} {{ end }} diff --git a/layouts/partials/header-sori-tag.html b/layouts/partials/header-sori-tag.html index 32ddecf..5daaaf5 100644 --- a/layouts/partials/header-sori-tag.html +++ b/layouts/partials/header-sori-tag.html @@ -36,11 +36,11 @@
-

{{.Title}}

{{$.Scratch.Set "total" (len .Data.Pages)}} +

{{.Title}}

{{$.Scratch.Set "total" (len .Site.RegularPages )}}

{{if ge ($.Scratch.Get "total") 2 }}A collection of {{$.Scratch.Get "total"}} posts {{else}}{{$.Scratch.Get "total"}} post{{end}}

- \ No newline at end of file + diff --git a/layouts/partials/header-sori-term.html b/layouts/partials/header-sori-term.html index 06388d1..5387f95 100644 --- a/layouts/partials/header-sori-term.html +++ b/layouts/partials/header-sori-term.html @@ -46,4 +46,4 @@

- \ No newline at end of file + diff --git a/layouts/partials/header-sori.html b/layouts/partials/header-sori.html index b3dcdb7..58edadd 100644 --- a/layouts/partials/header-sori.html +++ b/layouts/partials/header-sori.html @@ -36,4 +36,4 @@ - \ No newline at end of file + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2262936..01613e1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -40,4 +40,4 @@

{{ .Site.Params.subtitle }}

- \ No newline at end of file + diff --git a/layouts/partials/meta-facebook.html b/layouts/partials/meta-facebook.html index ad86bc8..e1cd697 100644 --- a/layouts/partials/meta-facebook.html +++ b/layouts/partials/meta-facebook.html @@ -1,5 +1,5 @@ - + {{if .Site.Params.fbName}}{{end}} {{ if .IsPage }} @@ -14,4 +14,4 @@ {{ end }}{{if .Params.image }} {{else}}{{if .Site.Params.cover}} - {{end}}{{end}} \ No newline at end of file + {{end}}{{end}} diff --git a/layouts/partials/meta-twitter.html b/layouts/partials/meta-twitter.html index 37c6d6a..7c08039 100644 --- a/layouts/partials/meta-twitter.html +++ b/layouts/partials/meta-twitter.html @@ -11,5 +11,5 @@ {{ end }} - + diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 50a80a0..df837d3 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -1,4 +1,4 @@ -{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") }} +{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Type" "post") }} {{ range $paginator.Pages }}