File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{{- define "title" }}
2
2
{{- $pages := site.RegularPages }}
3
- {{- with site.Params.hb.blog.home.main_sections }}
3
+ {{- with (default site.Params.hb.blog.home.main_sections .Params.main_sections) }}
4
4
{{- $pages = where $pages "Section" "in" . }}
5
5
{{- end }}
6
6
{{- $pinned := first 1 (where $pages ".Params.pinned" true) }}
Original file line number Diff line number Diff line change 1
1
{{- $pages := site.RegularPages }}
2
- {{- with site.Params.hb.blog.home.main_sections }}
2
+ {{- with (default site.Params.hb.blog.home.main_sections .Params.main_sections) }}
3
3
{{- $pages = where $pages "Section" "in" . }}
4
4
{{- end }}
5
5
{{- $pinnedPos := default "" site.Params.hb.blog.home.pinned_posts_position }}
Original file line number Diff line number Diff line change 1
1
{{- $pages := site.RegularPages }}
2
- {{- with site.Params.hb.blog.home.main_sections }}
2
+ {{- with (default site.Params.hb.blog.home.main_sections .Params.main_sections) }}
3
3
{{- $pages = where $pages "Section" "in" . }}
4
4
{{- end }}
5
5
{{- $paginator := .Paginate $pages site.Params.hb.blog.paginate }}
You can’t perform that action at this time.
0 commit comments