theme: avoid false deprecation message if initial.md is displayed #580

This commit is contained in:
Sören Weber 2023-06-28 20:34:32 +02:00
parent f88ed671eb
commit de625fe57b
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -6,7 +6,8 @@
{{- $outputFormat = partial "output-format.hugo" $page }} {{- $outputFormat = partial "output-format.hugo" $page }}
{{- end }} {{- end }}
{{- $archetype := "default" }} {{- $archetype := "default" }}
{{- if $page.Params.archetype }} {{- if not $page.File }}
{{- else if $page.Params.archetype }}
{{- $archetype = $page.Params.archetype }} {{- $archetype = $page.Params.archetype }}
{{- else if $page.Params.chapter }} {{- else if $page.Params.chapter }}
{{- $archetype = "deprecated-chapter" }} {{- $archetype = "deprecated-chapter" }}