From 1d6a21e02c17913c74c36ce4a5c6a02f5f17b071 Mon Sep 17 00:00:00 2001 From: Emiel Hollander Date: Sun, 14 Oct 2018 10:39:11 +0200 Subject: Split some templates into partials This makes it easier to change or override parts of the theme on your site without losing updates to the theme. --- layouts/_default/single.html | 14 +------------- layouts/partials/header-menu.html | 4 ++++ layouts/partials/header.html | 11 ++++------- layouts/partials/single-post-info.html | 13 +++++++++++++ 4 files changed, 22 insertions(+), 20 deletions(-) create mode 100644 layouts/partials/header-menu.html create mode 100644 layouts/partials/single-post-info.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9134f96..1968456 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,19 +2,7 @@
- + {{ partial "single-post-info.html" . }}

{{ .Title }}

diff --git a/layouts/partials/header-menu.html b/layouts/partials/header-menu.html new file mode 100644 index 0000000..f769487 --- /dev/null +++ b/layouts/partials/header-menu.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6f00f62..eb22285 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,12 +6,9 @@ \ No newline at end of file diff --git a/layouts/partials/single-post-info.html b/layouts/partials/single-post-info.html new file mode 100644 index 0000000..d4a4353 --- /dev/null +++ b/layouts/partials/single-post-info.html @@ -0,0 +1,13 @@ + \ No newline at end of file -- cgit v1.2.3