From c9c568012793e9370f74b81b3fca5f784d4c5322 Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Thu, 20 Dec 2018 13:39:19 -0500 Subject: [PATCH] Add front matter parameter to enable/disable drop cap at the beginning of a post --- archetypes/default.md | 1 + archetypes/post.md | 1 + layouts/_default/single.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/archetypes/default.md b/archetypes/default.md index c4ad9fc..ee29505 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -2,6 +2,7 @@ title: "{{ replace .TranslationBaseName "-" " " | title }}" date: {{ .Date }} description: "" +dropCap: false displayInMenu: false displayInList: true draft: true diff --git a/archetypes/post.md b/archetypes/post.md index b9b7e9e..f1f3e58 100644 --- a/archetypes/post.md +++ b/archetypes/post.md @@ -4,6 +4,7 @@ date: {{ .Date }} description: "" categories: [] featuredImage: "" +dropCap: true displayInMenu: false displayInList: true draft: true diff --git a/layouts/_default/single.html b/layouts/_default/single.html index af8f6c2..e9092e4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@ {{ partial "nav-bar.html" . }}
-
+

{{ .Title }}