diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-15 10:31:09 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-15 10:31:09 +0300 |
commit | 099821c8c7b1f508d72877a38d74d93cb38553e2 (patch) | |
tree | 764b8ae28fded5878fc12087b3862217878ffae7 /layouts | |
parent | 1d6a21e02c17913c74c36ce4a5c6a02f5f17b071 (diff) |
Split single post header partial for more flexibility
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 6 | ||||
-rw-r--r-- | layouts/partials/single/header.html | 4 | ||||
-rw-r--r-- | layouts/partials/single/post-info.html (renamed from layouts/partials/single-post-info.html) | 0 |
3 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1968456..12f8772 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,13 +2,9 @@ <main> <div class="post"> - {{ partial "single-post-info.html" . }} - - <h1 class="post-title">{{ .Title }}</h1> - <div class="post-line"></div> + {{ partial "single/header.html" . }} {{ .Content }} - </div> <div class="pagination"> diff --git a/layouts/partials/single/header.html b/layouts/partials/single/header.html new file mode 100644 index 0000000..0bfd8ac --- /dev/null +++ b/layouts/partials/single/header.html @@ -0,0 +1,4 @@ +{{ partial "single/post-info.html" . }} + +<h1 class="post-title">{{ .Title }}</h1> +<div class="post-line"></div>
\ No newline at end of file diff --git a/layouts/partials/single-post-info.html b/layouts/partials/single/post-info.html index d4a4353..d4a4353 100644 --- a/layouts/partials/single-post-info.html +++ b/layouts/partials/single/post-info.html |