diff options
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 132386f..ef21430 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ </div> <div class="content"> - {{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }} + {{ range ( .Paginate (where .Site.RegularPages "Type" "post")).Pages }} {{ .Render "summary"}} {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9cb9c19..4eda3b6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,6 +6,10 @@ <title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title> + {{ if .Params.canonical }} + <link rel="canonical" href="{{ .Params.canonical }}"> + {{ end }} + <!-- CSS --> {{ $purecss := "https://cdnjs.cloudflare.com/ajax/libs/pure/1.0.0/" }} <link rel="stylesheet" href="{{ $purecss }}pure-min.css"> |