From ebb14fb8e4737db4afcebad1f2f6ea4d4e1a3c1e Mon Sep 17 00:00:00 2001 From: Emiel Hollander Date: Tue, 16 Oct 2018 19:04:35 +0200 Subject: Add partials for single post header and footer --- README.md | 9 +++++++++ layouts/_default/single.html | 5 +++++ layouts/partials/single/footer.html | 5 +++++ layouts/partials/single/header.html | 9 +++++---- layouts/partials/single/title.html | 2 ++ 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/single/footer.html create mode 100644 layouts/partials/single/title.html diff --git a/README.md b/README.md index cf33ec9..151546b 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,15 @@ Tale allows for writing the summary of your posts manually by setting the `summa Tale has basic support for taxonomies. Taxonomy and terms pages will be generated when you have defined taxonomies, but you need to include links to these pages yourself. For example, you can add a link to a taxonomy page in `header-menu.html`. +### Placeholder partials + +The theme contains placeholder partials to make the theme more flexible and easier to adapt to your site without having to change the theme itself. These are: + +- `single/header.html` +- `single/footer.html` + +These are included in the template for a single post, at the top of the post (below the title) and at the bottom of the post, respectively. These can be used, for example, to include additional information about the post author or for related posts. Create a file `/layouts/partials/single/header.html` or `footer.html` on your own site to have it included. + ## Acknowledgments Thanks diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7c6592a..f705d3c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,9 +2,14 @@
+ {{ partial "single/post-info.html" . }} + {{ partial "single/title.html" . }} + {{ partial "single/header.html" . }} {{ .Content }} + + {{ partial "single/footer.html" . }}