summaryrefslogtreecommitdiffstats
path: root/layouts/page
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-06-05 22:42:49 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-06-05 22:42:49 +0200
commit5c8c5ba97b10a4a385dcfee38a6ab9e38e2fda2c (patch)
treec4214d9b0a1530f267048b1b6fa623f90cf85531 /layouts/page
parentc29c65432be493a7e3222d430dc540354cc8d649 (diff)
downloadgohugo-theme-ed-5c8c5ba97b10a4a385dcfee38a6ab9e38e2fda2c.tar.gz
Add missed layout for single page
Diffstat (limited to 'layouts/page')
-rw-r--r--layouts/page/single.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/page/single.html b/layouts/page/single.html
new file mode 100644
index 0000000..cb2faba
--- /dev/null
+++ b/layouts/page/single.html
@@ -0,0 +1,14 @@
+{{ define "main" }}
+{{- $postType := .Type | lower | singularize -}}
+<article class="{{ partial "post-class.html" . }}" role="document"{{ with .Params.lang }} lang="{{ . }}"{{ end }}>
+ <header>
+ <h1 class="text-title">
+ {{ .Params.caption | default .Title }}
+ </h1>
+ </header>
+
+ <div class="{{ $postType }}-body">
+ {{ .Content }}
+ </div>
+</article>
+{{ end }}