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
Regis Philibert
b393088d09
Make sure only the title closest to content is an h1, ( #585 )
...
not the hero's.
Fixes #584
2022-10-31 11:34:59 -04: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
Regis Philibert
d4e5a698a8
Update exampleSite
2022-02-11 14:54:39 -05:00
Sean
5001b28387
Add automatic cover image support ( #303 )
...
* Add support for auto-detection of featured images.
* Rename Partial, Add Documentation
Renamed the partial to func/GetFeaturedImage.html.
Additionally added more documentation in the partial to explain how it
worked, and what values were returned.
Co-authored-by: Sean Zimmermann <sz2243@columbia.edu>
2020-06-23 09:34:09 -04: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
Sean Harger
e418548683
Support hiding the featured image header text. ( #155 )
...
I updated the documentaiton as well as changed the contact page in the
exampleSite to use this feature as a demo.
2019-02-10 22:47:28 -05: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
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
91984fee72
tweak layouts
2017-04-11 08:53:11 -04:00
Bud Parr
98bc281a57
first commit
2017-04-10 21:27:13 -04:00