diff options
| -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 }} |
