We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4083c commit 3c9c6e8Copy full SHA for 3c9c6e8
layouts/_default/blog.html
@@ -1,4 +1,11 @@
1
{{- define "title" }}
2
+ {{- $pages := site.RegularPages }}
3
+ {{- with (default site.Params.hb.blog.home.main_sections .Params.main_sections) }}
4
+ {{- $pages = where $pages "Section" "in" . }}
5
+ {{- end }}
6
+ {{- $pinned := first (default 1 .Site.Params.hb.blog.list_pinned_posts) (where $pages ".Params.pinned" true) }}
7
+ {{- $pages = union $pinned $pages }}
8
+ {{- $paginator := .Paginate $pages (default 12 .Site.Params.hb.blog.paginate) }}
9
{{ partial "hb/modules/blog/title" . }}
10
{{- end -}}
11
0 commit comments