docs: add new templates #78

This commit is contained in:
Sören Weber 2021-09-07 21:32:21 +02:00
parent 7b39a0bebd
commit 234412e2d2
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -9,6 +9,7 @@ In `themes/hugo-theme-relearn/layouts/partials/`, you will find all the partials
This theme defines the following 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_ - *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 - *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_ - *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. - *logo*: the logo, on top left hand corner.
- *meta*: HTML meta tags, if you want to change default behavior - *meta*: HTML meta tags, if you want to change default behavior
- *menu*: left menu. _Not meant to be overwritten_ - *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 - *menu-footer*: footer of the the left menu
- *search*: search box - *search*: search box
- *toc*: table of contents - *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) ![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. 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.