diff options
author | Austin Gebauer <34121980+austingebauer@users.noreply.github.com> | 2021-05-04 05:54:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 05:54:57 +0300 |
commit | c1e722c2e2b6165ab0e437d25521bdbbf6107ee5 (patch) | |
tree | dca37a8f03686df1ea359240ad167c88abc29fb3 | |
parent | 9640df0dacba7f20516454b9c00ba2deefbc0387 (diff) | |
parent | 930e97d29126f200c321e3273815ddf9ac1e37e1 (diff) |
Merge pull request #13 from ctennis/master
If recent_posts is set to 0, don't include this section
-rw-r--r-- | layouts/partials/category-posts.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/category-posts.html b/layouts/partials/category-posts.html index a6a1c87..c3e83b2 100644 --- a/layouts/partials/category-posts.html +++ b/layouts/partials/category-posts.html @@ -5,6 +5,7 @@ {{ if isset .Site.Params "recent_posts" }} {{ $recent = .Site.Params.recent_posts }} {{ end }} + {{ if gt $recent 0 }} <div class="pb-3"> <h5><span class="badge category">Recent</span></h5> <ul class="list-unstyled"> @@ -16,6 +17,7 @@ {{ end }} </ul> </div> + {{ end }} {{ range $key, $taxonomy := .Site.Taxonomies.categories.Alphabetical }} <div class="pb-3"> |