Special-1st-Post: allow disabling the special highlight of 1st Post

* usage => in site config
    params:
        disableSpecial1stPost : true
This commit is contained in:
Aditya Telange 2020-09-14 22:50:04 +05:30
parent 9ab747c654
commit 9c861cb77f
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
{{- $class := "post-entry" }}
{{- 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" . }}
{{else}}
{{- $class = "first-entry" }}