Skip to content

Commit

Permalink
feat: add the hb.blog.home.taxonomies parameter to show/hide the taxo…
Browse files Browse the repository at this point in the history
…nomies navigation on homepage

params.yaml
hb:
  blog:
    home:
      taxonomies: false # default: true
  • Loading branch information
evandde authored and razonyang committed Jun 1, 2023
1 parent 766de10 commit fda532d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/hb/modules/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
</div>
{{- end }}
</div>
{{ partialCached "hb/modules/blog/home/taxonomies" . }}
{{- if default true site.Params.hb.blog.home.taxonomies }}
{{ partialCached "hb/modules/blog/home/taxonomies" . }}
{{- end }}
{{- with .Paginator }}
{{ partial "hb/modules/blog/posts" (dict "Pages" .Pages "Cols" "row-cols-1 row-cols-md-2 row-cols-lg-3") }}
{{ partial "hb/modules/pagination/index" . }}
Expand Down

0 comments on commit fda532d

Please sign in to comment.