Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <c@leb.tennis>2021-05-04 03:45:47 +0300
committerCaleb Tennis <c@leb.tennis>2021-05-04 03:45:47 +0300
commit930e97d29126f200c321e3273815ddf9ac1e37e1 (patch)
treedca37a8f03686df1ea359240ad167c88abc29fb3
parent9640df0dacba7f20516454b9c00ba2deefbc0387 (diff)
If recent_posts is set to 0, don't include this section
-rw-r--r--layouts/partials/category-posts.html2
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">