From 286af113f0139c36183589b7ba731c70e155e8ff Mon Sep 17 00:00:00 2001 From: Greg Tzar Date: Mon, 15 Jul 2019 20:38:33 -0400 Subject: [PATCH] Added a prepended_head.html partial to allow custom insertion of scripts and links to be declared before the templates. --- README.md | 3 ++- layouts/partials/head.html | 3 +++ layouts/partials/prepended_head.html | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/prepended_head.html diff --git a/README.md b/README.md index 293c58f..cc24285 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,8 @@ Adding a cover image to your post is simple and there are two options when you e - **Archive** — Theme has built-in `archive` page for main content (see `contentTypeName` variable in config). If you need archive on your blog just copy https://github.com/panr/hugo-theme-hello-friend/blob/master/exampleSite/content/archive.md to your `content` dir. If you need multilangual archives, duplicate `content/archive.md` and add `.Lang` variable, eg: `content/archive.pl.md` (remember to change `url` in duplicated file). - **Comments** — for adding comments to your blog posts please take a look at `layouts/partials/comments.html` https://github.com/panr/hugo-theme-terminal/blob/master/layouts/partials/comments.html. -- **Extended ``** — if you need to add something inside `` element, please take a look at `layouts/partial/extended_head.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_head.html +- **Prepended ``** — if you need to add something inside `` element, and before any of the theme's `