diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | layouts/partials/docs/html-head-title.html | 1 | ||||
-rw-r--r-- | layouts/partials/docs/html-head.html | 2 |
3 files changed, 7 insertions, 4 deletions
@@ -188,7 +188,7 @@ disableKinds = ['taxonomy', 'taxonomyTerm'] # Set source repository location. # Used for 'Last Modified' and 'Edit this page' links. BookRepo = 'https://github.com/alex-shpak/hugo-book' - + # Specifies commit portion of the link to the page's last modified commit hash for 'doc' page # type. # Required if 'BookRepo' param is set. @@ -264,9 +264,11 @@ bookSearchExclude = true ### Partials -There are few empty partials you can override in `layouts/partials/` +There are layout partials available for you to easily override components of the theme in `layouts/partials/`. + +In addition to this, there are several empty partials you can override to easily add/inject code. -| Partial | Placement | +| Empty Partial | Placement | | -------------------------------------------------- | ------------------------------------------- | | `layouts/partials/docs/inject/head.html` | Before closing `<head>` tag | | `layouts/partials/docs/inject/body.html` | Before closing `<body>` tag | diff --git a/layouts/partials/docs/html-head-title.html b/layouts/partials/docs/html-head-title.html new file mode 100644 index 0000000..49a109d --- /dev/null +++ b/layouts/partials/docs/html-head-title.html @@ -0,0 +1 @@ +{{ partial "docs/title" . }} | {{ .Site.Title -}} diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 4f58114..333a885 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -6,7 +6,7 @@ {{- template "_internal/opengraph.html" . -}} -<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title> +<title>{{ partial "docs/html-head-title" . }}</title> {{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }} <link rel="manifest" href="{{ $manifest.RelPermalink }}"> |