Cyrill Raccaud
5a1776455f
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>
2024-10-21 15:48:03 +07:00
Cyrill Raccaud
9fc4b73a36
theme(fix): header image positioning ( #731 )
...
Currently, the header image for a post is `bg-top`, but it would be nice
the control this behavior to lets say `top|center|bottom`, as often the
interesting part of an image is in the center. Using the
`featured_image_class` param, one can now customize the class to control
the alignment of the featured header image. It is also possible to add
additional classes for further customization if needed.
Default case:
<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 23 10"
src="https://github.com/user-attachments/assets/477bafd2-e50a-44bf-93df-2289cb8380b2 ">
Same as default case but set explicitly `featured_image_class = cover
bg-top`:
<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 23 10"
src="https://github.com/user-attachments/assets/477bafd2-e50a-44bf-93df-2289cb8380b2 ">
`featured_image_class = cover bg-center`:
<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 23 27"
src="https://github.com/user-attachments/assets/7bae039d-d31b-405b-b5c0-0dc9e13a4f8c ">
`featured_image_class = cover bg-bottom`:
<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 23 36"
src="https://github.com/user-attachments/assets/52dc14cd-2a30-4763-ae90-353d10fb34e7 ">
`featured_image_class = contain bg-top`:
<img width="1512" alt="Bildschirmfoto 2024-10-12 um 14 29 16"
src="https://github.com/user-attachments/assets/1ee6f371-f2b4-4740-924d-9ea6c1a44df8 ">
**Code formatting**
<!-- See the simple style guide. -->
**Closing issues**
Closes #729
2024-10-21 14:57:39 +07:00
Aren Siekmeier
6affbfb0dd
fix permissions ( #581 )
2022-12-14 09:56:24 -05:00
Regis Philibert
470ea40982
Only apply the absURL on images served through satic directory ( #557 )
...
This will solve the subdirectory edge case without communication
Fixes #556
2022-06-10 15:36:57 -04:00
Troy Lindsay
3789b8edae
Standardize featured_image logic ( #473 ) ( #474 )
2022-01-10 15:24:14 -05:00
echarp
0eb51edd63
Correcting issue with cached i18n menu ( #174 )
...
* Create fr.toml
French translation
* Social link to "mastodon" added
* Some statics partials are cached, to optimise rendering
* Caching moved so that the i18n menu will work as expected. Refs #35
2019-05-14 20:32:08 -04:00
echarp
175482653c
Optimisation "partialCached" ( #165 )
...
* Create fr.toml
French translation
* Social link to "mastodon" added
* Some statics partials are cached, to optimise rendering
2019-03-21 19:13:18 -04:00
Andrey Romancev
cd09f253f6
Make cover dimming class customisable. ( #140 )
2018-11-14 16:02:29 -05:00
cdeguise
37bb3cc699
Removed hardcoded theme sample hero image. This will allow the user to "blank" out the hero default set in the config. The if statement for blank was unreachable. ( #133 )
2018-11-03 23:09:03 -04:00
Bjørn Erik Pedersen
7b5196ad18
Make Hero image work out-of-the box ( #40 )
...
* using Hero sample image in the theme's /static folder
* fall back to site config
* fall back to hard coded default if none set in page or site params
2017-07-23 08:36:54 -04:00
Bud Parr
9543d90786
tweak hero default behavior
2017-04-20 08:18:43 -04:00
Bud Parr
ee265de976
improve image handling for edge cases Fixes #11
2017-04-19 16:45:24 -04:00
Bud Parr
2806e91176
add image to theme dir and use for fallback
2017-04-18 23:27:06 -04:00
Bud Parr
8c101b4231
add a copy of the sample image to the theme
2017-04-18 23:20:19 -04:00
Bud Parr
afa7a9d29a
add variaable for header bg class
2017-04-15 20:14:13 -04:00
Bud Parr
480ea34d22
improve conditional
2017-04-15 09:04:44 -04:00
Bud Parr
ea887e9313
fix issues with featured image
2017-04-15 09:03:13 -04:00
Bud Parr
53df85690d
wip clean up and annotations
2017-04-14 12:37:12 -04:00
Bud Parr
426676fd3c
page layout [wip]
2017-04-11 22:22:06 -04:00
Bud Parr
d098f46b07
on page wtyling [wip]
2017-04-11 18:59:14 -04:00
Bud Parr
91984fee72
tweak layouts
2017-04-11 08:53:11 -04:00
Bud Parr
98bc281a57
first commit
2017-04-10 21:27:13 -04:00