From 234412e2d217603cf197a08a3df698a53d5393f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 7 Sep 2021 21:32:21 +0200 Subject: [PATCH] docs: add new templates #78 --- exampleSite/content/basics/customization/_index.en.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/basics/customization/_index.en.md b/exampleSite/content/basics/customization/_index.en.md index f304648b81..32dba77ed8 100644 --- a/exampleSite/content/basics/customization/_index.en.md +++ b/exampleSite/content/basics/customization/_index.en.md @@ -9,6 +9,7 @@ In `themes/hugo-theme-relearn/layouts/partials/`, you will find all the partials This theme defines the following partials : +- *content*: the content page itself. This can be overridden if you wan't to display page's meta data above or below the content. - *header*: the header of the content page (contains the breadcrumbs). _Not meant to be overwritten_ - *custom-header*: custom headers in page. Meant to be overwritten when adding CSS imports. Don't forget to include `style` HTML tag directive in your file - *footer*: the footer of the content page (contains the arrows). _Not meant to be overwritten_ @@ -17,6 +18,8 @@ This theme defines the following partials : - *logo*: the logo, on top left hand corner. - *meta*: HTML meta tags, if you want to change default behavior - *menu*: left menu. _Not meant to be overwritten_ +- *menu-pre*: side-wide configuration to prepend to menu items. If you override this, it is your responsiblity to take the page's `pre` setting into account. +- *menu-post*: side-wide configuration to append to menu items. If you override this, it is your responsiblity to take the page's `post` setting into account. - *menu-footer*: footer of the the left menu - *search*: search box - *toc*: table of contents @@ -84,7 +87,7 @@ If you need to change this default behavior, create a new file in `layouts/parti ![Green variant](images/green-variant.png?width=60pc) -### 'Yours‘ variant +### 'Mine‘ variant First, create a new CSS file in your local `static/css` folder prefixed by `theme` (e.g. with _mine_ theme `static/css/theme-mine.css`). Copy the following content and modify colors in CSS variables.