From 1d88a13f8d598d294f1eaac9eba88b35fb6209e5 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 14 Aug 2020 22:55:28 +0200 Subject: [PATCH] add 'doctypes' to default front matter; make sidebar more configurable --- archetypes/default.md | 1 + layouts/partials/sidebar.html | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index f5f166c..e762517 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -5,6 +5,7 @@ img: teaser: "" domains: [] topics: [] +doctypes: [] date: {{ .Date }} author: draft: false diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6aa3bdc..8018200 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -12,6 +12,12 @@ {{- else if .Site.Params.defaultImage -}} dummy + {{- else if .Params.Summary -}} +
+
+
{{ .Params.Summary }}
+
+
{{- end }} {{- $site := .Site -}} @@ -31,7 +37,8 @@ {{- end }} - {{ with .Params.Topics -}} + {{ if not .Site.Params.hideRelatedArticles -}} + {{- with .Params.Topics -}}

{{ i18n "related" }}

@@ -53,9 +60,10 @@
+ {{- end -}} {{- end }} - {{ if .Site.Params.showSectionArticles -}} + {{ if not .Site.Params.hideSectionArticles -}}
{{- $section := or .Section "posts" -}}