From d519fa3153c53197b833f22cb3f1e64d3b96afea Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 15 May 2022 15:27:53 +0200 Subject: Provide ability to create cutom page title --- layouts/page/single.html | 7 +++++++ layouts/pages/single.html | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 layouts/page/single.html delete mode 100644 layouts/pages/single.html (limited to 'layouts') diff --git a/layouts/page/single.html b/layouts/page/single.html new file mode 100644 index 0000000..03c488a --- /dev/null +++ b/layouts/page/single.html @@ -0,0 +1,7 @@ +{{ define "main" }} +
+

{{ .Params.caption | default .Title }}

+ {{ .Content }} +
+{{ end }} + diff --git a/layouts/pages/single.html b/layouts/pages/single.html deleted file mode 100644 index 8e67367..0000000 --- a/layouts/pages/single.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} -
-

{{ .Title }}

- {{ .Content }} -
-{{ end }} -- cgit v1.2.3