diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-03-03 21:14:03 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-03-03 21:14:03 +0300 |
commit | f0ecc41241bd3466c5af145ef67e7046e333395b (patch) | |
tree | c27a7f867a58f983d260f109e3e184867b017a03 | |
parent | b99c67f51169a572f7aa9c5a091229599154c83f (diff) |
Set up to filter by type instead of section
-rw-r--r-- | layouts/_default/section.html | 2 | ||||
-rw-r--r-- | layouts/partials/intro.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 31d49a0..d33004e 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -10,7 +10,7 @@ </a>
</h2>
<div class="border rounded p-2">
- {{ range where $taxonomy.Pages.ByDate "Section" $sectionName }}
+ {{ range where $taxonomy.Pages.ByDate "Type" $sectionName }}
<h4 class="ml-2">
<a href="{{ .Permalink }}">
{{ .Title }}
diff --git a/layouts/partials/intro.html b/layouts/partials/intro.html index c7ad259..6104e3b 100644 --- a/layouts/partials/intro.html +++ b/layouts/partials/intro.html @@ -22,7 +22,7 @@ ><a href="./posts"><i>See All</i></a></small
>
</h4>
- {{ range where .Pages "Section" "posts" | first 4}}
+ {{ range where .Pages "Type" "posts" | first 4}}
<a class="list-entry-link text-uppercase" href="{{ .Permalink }}">
{{ .Title }}
</a>
|