Skip to content

Commit

Permalink
Merge pull request austingebauer#13 from ctennis/master
Browse files Browse the repository at this point in the history
If recent_posts is set to 0, don't include this section
  • Loading branch information
austingebauer authored May 4, 2021
2 parents 9640df0 + 930e97d commit c1e722c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/category-posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -16,6 +17,7 @@ <h5><span class="badge category">Recent</span></h5>
{{ end }}
</ul>
</div>
{{ end }}

{{ range $key, $taxonomy := .Site.Taxonomies.categories.Alphabetical }}
<div class="pb-3">
Expand Down

0 comments on commit c1e722c

Please sign in to comment.