diff --git a/layouts/partials/archetype.hugo b/layouts/partials/archetype.hugo index 854b20465d..45bcc7cfb8 100644 --- a/layouts/partials/archetype.hugo +++ b/layouts/partials/archetype.hugo @@ -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" }}