diff options
author | Sean Lane <git@sean.lane.sh> | 2019-09-18 19:27:04 +0300 |
---|---|---|
committer | Sean Lane <git@sean.lane.sh> | 2019-09-18 19:27:04 +0300 |
commit | e2e55cda8c9442dfa5d64d32081a5e1f08bfd6eb (patch) | |
tree | c43247727a13b86682d140631eef42616a4b2a2e | |
parent | 3bdeb9968435eafb4897072a2ce1a88a3b8d6eb2 (diff) |
Explicitly grab all pages so we can filter down to recipes section pages
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/home.html | 2 | ||||
-rw-r--r-- | layouts/partials/list.html | 2 | ||||
-rw-r--r-- | layouts/posts/list.html | 2 | ||||
-rw-r--r-- | layouts/taxonomy/list.html | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6e4298c..bcf7249 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -29,7 +29,7 @@ <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32"> <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16"> - {{ .Hugo.Generator }} + {{ hugo.Generator }} </head> <body> {{ partial "header.html" . }} diff --git a/layouts/partials/home.html b/layouts/partials/home.html index ef2c10e..fea0b02 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -1,7 +1,7 @@ <div class="home"> <div class="recipes xs-px1 xs-mt2"> <div class="clearfix"> - {{ range sort (where .Pages "Section" "recipes") "Title" }} + {{ range sort (where .Site.Pages "Section" "recipes") "Title" }} <div class="sm-col sm-col-6 md-col-6 lg-col-4 xs-px1 xs-mb2"> <a class="block relative bg-blue" href="{{ .RelPermalink }}"> {{ with .Resources.ByType "image" }} diff --git a/layouts/partials/list.html b/layouts/partials/list.html index 233584f..144f447 100644 --- a/layouts/partials/list.html +++ b/layouts/partials/list.html @@ -13,7 +13,7 @@ {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }} </div> <div class="pure-u-2-3"> - <a href="{{ .URL }}">{{ .Title }}</a> + <a href="{{ .Permalink }}">{{ .Title }}</a> </div> </div> {{ end }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 170217d..0f79cd9 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -8,7 +8,7 @@ {{ if $i }}<hr/> {{ end }} <div class="pure-g flex-center"> <div class="pure-u-1 pure-u-sm-2-3"> - <h3 class="post-list-title"><a href="{{ $page.URL }}">{{ $page.Title }}</a></h3> + <h3 class="post-list-title"><a href="{{ $page.Permalink }}">{{ $page.Title }}</a></h3> </div> <div class="pure-u-1 pure-u-sm-1-3 post-right"> <p>{{ $page.Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</p> diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 236296a..9603ffc 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -11,7 +11,7 @@ {{ range .Paginator.Pages }} <div class="pure-g"> <div class="pure-u-1"> - <h3><a href="{{ .URL }}">{{ .Title }}</a></h3> + <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3> </div> </div> {{ end }} |