diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-06-05 22:42:49 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-06-05 22:42:49 +0200 |
| commit | 5c8c5ba97b10a4a385dcfee38a6ab9e38e2fda2c (patch) | |
| tree | c4214d9b0a1530f267048b1b6fa623f90cf85531 /layouts | |
| parent | c29c65432be493a7e3222d430dc540354cc8d649 (diff) | |
| download | gohugo-theme-ed-5c8c5ba97b10a4a385dcfee38a6ab9e38e2fda2c.tar.gz | |
Add missed layout for single page
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/single.html | 2 | ||||
| -rw-r--r-- | layouts/page/single.html | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6be2a68..f327cbc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} {{- $postType := .Type | lower | singularize -}} -<article class="{{ partial "post-class.html" . }}" role="document"{{ with .Params.lang}} lang="{{ . }}"{{ end }}> +<article class="{{ partial "post-class.html" . }}" role="document"{{ with .Params.lang }} lang="{{ . }}"{{ end }}> <header> <h1 class="text-title"> {{ .Params.caption | default .Title }} 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 }} |
