From 54c8c67e12a998b33eb508a80b458cade35a2864 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 30 Apr 2022 22:09:28 +0200 Subject: Add custom content types --- archetypes/drama.md | 9 +++++++++ archetypes/narrative.md | 12 ++++++++++++ layouts/drama/single.html | 7 +++++++ layouts/narrative/single.html | 7 +++++++ layouts/poem/single.html | 7 +++++++ 5 files changed, 42 insertions(+) create mode 100644 archetypes/drama.md create mode 100644 archetypes/narrative.md create mode 100644 layouts/drama/single.html create mode 100644 layouts/narrative/single.html create mode 100644 layouts/poem/single.html diff --git a/archetypes/drama.md b/archetypes/drama.md new file mode 100644 index 0000000..cdc87b0 --- /dev/null +++ b/archetypes/drama.md @@ -0,0 +1,9 @@ +--- +title: "{{ replace .File.ContentBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +type: drama +author: "" +editor: "" +source: "" +--- diff --git a/archetypes/narrative.md b/archetypes/narrative.md new file mode 100644 index 0000000..166627d --- /dev/null +++ b/archetypes/narrative.md @@ -0,0 +1,12 @@ +--- +title: "{{ replace .File.ContentBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +type: narrative +rights: "" +author: "" +editor: "" +source: "" +toc: + - "" +--- diff --git a/layouts/drama/single.html b/layouts/drama/single.html new file mode 100644 index 0000000..0609384 --- /dev/null +++ b/layouts/drama/single.html @@ -0,0 +1,7 @@ +{{ define "main" }} +
+

{{ .Title }}

+ + {{ .Content }} +
+{{ end }} diff --git a/layouts/narrative/single.html b/layouts/narrative/single.html new file mode 100644 index 0000000..6b56ef4 --- /dev/null +++ b/layouts/narrative/single.html @@ -0,0 +1,7 @@ +{{ define "main" }} +
+

{{ .Title }}

+ + {{ .Content }} +
+{{ end }} diff --git a/layouts/poem/single.html b/layouts/poem/single.html new file mode 100644 index 0000000..9ad5bfc --- /dev/null +++ b/layouts/poem/single.html @@ -0,0 +1,7 @@ +{{ define "main" }} +
+

{{ .Title }}

+ + {{ .Content }} +
+{{ end }} -- cgit v1.2.3