![Cyrill Raccaud](/assets/img/avatar_default.png)
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
61 lines
1.6 KiB
TOML
61 lines
1.6 KiB
TOML
title = "Notre-Dame de Paris"
|
|
baseURL = "https://gohugo-theme-ananke.pages.dev"
|
|
languageCode = "en-us"
|
|
theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]
|
|
resourceDir = "../resources"
|
|
|
|
DefaultContentLanguage = "en"
|
|
SectionPagesMenu = "main"
|
|
googleAnalytics = ""
|
|
enableRobotsTXT = true
|
|
|
|
[pagination]
|
|
pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number
|
|
|
|
[languages]
|
|
[languages.en]
|
|
title = "Ananke"
|
|
weight = 1
|
|
contentDir = "content/en"
|
|
# languageDirection = 'rtl' for Right-To-Left languages
|
|
[languages.fr]
|
|
title = "Ananke Fr"
|
|
weight = 2
|
|
contentDir = "content/fr"
|
|
|
|
[sitemap]
|
|
changefreq = "monthly"
|
|
priority = 0.5
|
|
filename = "sitemap.xml"
|
|
|
|
[params]
|
|
text_color = ""
|
|
author = ""
|
|
favicon = ""
|
|
site_logo = ""
|
|
description = "The last theme you'll ever need. Maybe."
|
|
# choose a background color from any on this page: https://tachyons.io/docs/themes/skins/ and preface it with "bg-"
|
|
background_color_class = "bg-black"
|
|
# choose an fitting and alignment style for the featured image using tachyons classes such as "cover|contain" for fitting and "bg-top|bg-center|bg-bottom" for alignment, or add any other class space-separated to customize further
|
|
featured_image_class = "cover bg-top"
|
|
recent_posts_number = 3
|
|
|
|
[ananke.social.follow]
|
|
new_window_icon = false # show a little "opens in new window" icon next to the link
|
|
networks = [
|
|
"facebook",
|
|
"bluesky",
|
|
"linkedin"
|
|
]
|
|
|
|
[params.ananke.social]
|
|
[params.ananke.social.facebook]
|
|
username = "patrick.kollitsch"
|
|
# profilelink = "https://www.facebook.com/patrick.kollitsch"
|
|
|
|
[params.ananke.social.linkedin]
|
|
username = "patrickkollitsch"
|
|
|
|
[params.ananke.social.bluesky]
|
|
username = "kollitsch.dev"
|