mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Cyrill Raccaud
21.48.2024 5a1776455f8a8e661c88ce8989cab4e82dc1e032
refs
author Cyrill Raccaud <miaucl@users.noreply.github.com>
Monday, October 21, 2024 10:48 +0200
committer GitHub <noreply@github.com>
Monday, October 21, 2024 10:48 +0200
commit5a1776455f8a8e661c88ce8989cab4e82dc1e032
tree 29abd8506efa1fbfb1d0c4fabd304332de519739 tree | zip | gz
parent e7f28b0de4effbb8f20760611873d226f833b278 view | diff
complete the feature for the cover dimming class in page (#732)

- feature already present for site
- add info for the param to the example

Like https://github.com/theNewDynamic/gohugo-theme-ananke/pull/702, this
PR wants to add the cover class to the page as well, but adds also the
documentation to the example and allows both for page params and site
params.

Solves https://github.com/theNewDynamic/gohugo-theme-ananke/issues/696
in a proper way for site and page with fallback and documentation in the
example.

Default:

<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 47 12"
src="https://github.com/user-attachments/assets/fbbec618-2045-4be7-94d7-09169a253a96">

Same as default `cover_dimming_class = bg-black-60`:

<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 47 12"
src="https://github.com/user-attachments/assets/fbbec618-2045-4be7-94d7-09169a253a96">

`cover_dimming_class = bg-black-20`:

<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 47 20"
src="https://github.com/user-attachments/assets/7bf64564-4f6d-42c9-bed1-83b426d487ae">

`cover_dimming_class = bg-black-90`:

<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 47 34"
src="https://github.com/user-attachments/assets/354a0e49-7446-46d7-adc1-f8e4ecee3831">


**Closing issues**

closes #702
closes #696

---------

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
Co-authored-by: Patrick Kollitsch <patrick@davids-neighbour.com>
4 files modified
18 ■■■■ changed files
README.md 4 ●●●● diff | view | raw | blame | history
exampleSite/config.toml 2 ●●●●● diff | view | raw | blame | history
layouts/partials/page-header.html 6 ●●●●● diff | view | raw | blame | history
layouts/partials/site-header.html 6 ●●●●● diff | view | raw | blame | history