mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
theme: avoid false deprecation message if initial.md is displayed #580
This commit is contained in:
parent
f88ed671eb
commit
de625fe57b
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
|||
{{- $outputFormat = partial "output-format.hugo" $page }}
|
||||
{{- end }}
|
||||
{{- $archetype := "default" }}
|
||||
{{- if $page.Params.archetype }}
|
||||
{{- if not $page.File }}
|
||||
{{- else if $page.Params.archetype }}
|
||||
{{- $archetype = $page.Params.archetype }}
|
||||
{{- else if $page.Params.chapter }}
|
||||
{{- $archetype = "deprecated-chapter" }}
|
||||
|
|
Loading…
Add table
Reference in a new issue