diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-30 22:09:28 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-30 22:09:28 +0200 |
| commit | 54c8c67e12a998b33eb508a80b458cade35a2864 (patch) | |
| tree | a22e2eae03e8a16d716bcd623d58e4593eb36b42 | |
| parent | 24a19a83316c798c3dd18b90ed42aa120514ded8 (diff) | |
| download | gohugo-theme-ed-54c8c67e12a998b33eb508a80b458cade35a2864.tar.gz | |
Add custom content types
| -rw-r--r-- | archetypes/drama.md | 9 | ||||
| -rw-r--r-- | archetypes/narrative.md | 12 | ||||
| -rw-r--r-- | layouts/drama/single.html | 7 | ||||
| -rw-r--r-- | layouts/narrative/single.html | 7 | ||||
| -rw-r--r-- | layouts/poem/single.html | 7 |
5 files changed, 42 insertions, 0 deletions
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" }} +<article class="drama"> + <h1 class="text-title">{{ .Title }}</h1> + <p class="byline">by {{ .Params.author }}</p> + {{ .Content }} +</article> +{{ 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" }} +<article class="narrative"> + <h1 class="text-title">{{ .Title }}</h1> + <p class="byline">by {{ .Params.author }}</p> + {{ .Content }} +</article> +{{ 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" }} +<article class="poem poetry"> + <h1 class="text-title">{{ .Title }}</h1> + <p class="byline">by {{ .Params.author }}</p> + {{ .Content }} +</article> +{{ end }} |
