From 6b929ff8e04d0e686a7a14219fc6798056e063a4 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Tue, 10 Jul 2018 11:40:05 +1000 Subject: [PATCH] Merges template for About --- layouts/about/single.html | 13 ++++++++----- layouts/partials/content_about.html | 4 ---- 2 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 layouts/partials/content_about.html diff --git a/layouts/about/single.html b/layouts/about/single.html index 674f63e..3e3aa96 100644 --- a/layouts/about/single.html +++ b/layouts/about/single.html @@ -1,10 +1,13 @@ -{{ define "header" -}} - {{ partial "header.html" . }} +{{- define "header" -}} + {{- partial "header.html" . -}} {{- end -}} -{{ define "content" -}} - {{ partial "content_about.html" . }} +{{- define "content" -}} +
+

{{ .Title }}

+ {{ .Content }} +
{{- end -}} -{{ define "footer" -}} +{{- define "footer" -}} {{- end -}} diff --git a/layouts/partials/content_about.html b/layouts/partials/content_about.html deleted file mode 100644 index 1524b86..0000000 --- a/layouts/partials/content_about.html +++ /dev/null @@ -1,4 +0,0 @@ -
-

{{ .Title }}

- {{ .Content }} -
\ No newline at end of file