summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-30 22:09:28 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-30 22:09:28 +0200
commit54c8c67e12a998b33eb508a80b458cade35a2864 (patch)
treea22e2eae03e8a16d716bcd623d58e4593eb36b42 /layouts
parent24a19a83316c798c3dd18b90ed42aa120514ded8 (diff)
downloadgohugo-theme-ed-54c8c67e12a998b33eb508a80b458cade35a2864.tar.gz
Add custom content types
Diffstat (limited to 'layouts')
-rw-r--r--layouts/drama/single.html7
-rw-r--r--layouts/narrative/single.html7
-rw-r--r--layouts/poem/single.html7
3 files changed, 21 insertions, 0 deletions
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 }}