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,3 +1,4 @@
|
|||
{{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
|
||||
{{- if eq .Kind "home" }}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
@ -17,7 +18,7 @@
|
|||
"inLanguage": {{ .Lang }}
|
||||
}
|
||||
</script>
|
||||
{{- else if or (and (not (eq .Type "posts")) (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
|
||||
{{- else if $isPage }}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue