fix: paginate recent posts and use params.mainSections
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
{{ if isset .Data "Term" }}
|
||||
<h1>Entries tagged - "{{.Data.Term}}"</h1>
|
||||
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
|
||||
{{ else }}
|
||||
<h1 class="page-title">All articles</h1>
|
||||
{{ end }}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
{{- $.Scratch.Set "isDisqus" true -}}
|
||||
|
||||
{{- if and (isset .Params "type") (in (.Site.Params.disableDisqusTypes | default (slice "page")) .Params.type) -}}
|
||||
{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
|
||||
{{- $.Scratch.Set "isDisqus" false -}}
|
||||
{{- end -}}
|
||||
|
||||
|
Reference in New Issue
Block a user