diff --git a/exampleSite/archetypes/default.md b/exampleSite/archetypes/default.md index 8882e0b..64808c8 100644 --- a/exampleSite/archetypes/default.md +++ b/exampleSite/archetypes/default.md @@ -3,6 +3,8 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} tags: [] categories: [] +weight: 50 +show_comments: true draft: true --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fe05600..b951cb7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -39,9 +39,8 @@ {{ .Content }} - {{ if in .Site.Params.mainSections .Type }} + {{ with and .Site.Params.remark42 .Params.show_comments }}