mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-21 10:25:10 -04:00
Special-1st-Post: allow disabling the special highlight of 1st Post
* usage => in site config params: disableSpecial1stPost : true
This commit is contained in:
parent
9ab747c654
commit
9c861cb77f
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
{{- $class := "post-entry" }}
|
{{- $class := "post-entry" }}
|
||||||
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
|
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
|
||||||
{{- if .Site.Params.homeInfoParams }}
|
{{- if .Site.Params.homeInfoParams | or .Site.Params.disableSpecial1stPost}}
|
||||||
{{- partial "homeInfo.html" . }}
|
{{- partial "homeInfo.html" . }}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{- $class = "first-entry" }}
|
{{- $class = "first-entry" }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue