fix: fix isPage detection for metatdata tags (#348)
This commit is contained in:
parent
928906b251
commit
2ecb63e7b2
3 changed files with 9 additions and 5 deletions
|
@ -1,9 +1,10 @@
|
|||
{{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
|
||||
{{ $description := "" }}
|
||||
|
||||
{{ if .Description }}
|
||||
{{ $description = .Description }}
|
||||
{{ else }}
|
||||
{{ if .IsPage }}
|
||||
{{ if $isPage }}
|
||||
{{ $description = .Summary }}
|
||||
{{ else if .Site.Params.description }}
|
||||
{{ $description = .Site.Params.description }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue