Patrick Kollitsch 40fea59c8b
theme(fix): rework of the way the main sections for index.html are calculated
the following is a draft for the release page that should explain most of it:

* Index page: the way main sections were evaluated was unclear and probably changed much from the original design in GoHugo. This has been fixed and the main sections are now evaluated in a more consistent way. This might affect what is shown on your website, so open a discussion if you see something wrong and try to explain exactly what you expected to see in sense of included posts and order of those posts.

  The old way did this: check all configured main sections (or post, if nothing is set) > range through the section and display the first n+m posts (n = number of full previews, m = number of title previews only).

  The new way does this: load all posts in the main sections > range through the collection and display the first n+m posts (n = number of full previews, m = number of title previews only).

  Basically, the old way took every single section you configured and displayed them separate, the new way takes all posts from all sections and displays them in one list. This is more consistent and should be more predictable for you as a user. It's also the way it was intended to work from the beginning according to the documentation.

closes #686

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-02-09 16:52:52 +07:00

85 lines
2.2 KiB
TOML

title = "Notre-Dame de Paris"
baseURL = "https://gohugo-theme-ananke.pages.dev"
theme = ["github.com/theNewDynamic/gohugo-theme-ananke/v2"]
resourceDir = "../resources"
defaultContentLanguage = "en"
sectionPagesMenu = "main"
enableRobotsTXT = true
[services.googleAnalytics]
id = ''
[pagination]
pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number
[languages.en]
contentDir = "content/en"
languageCode = 'en-US'
weight = 1
title = "Ananke"
# languageDirection = 'rtl' for Right-To-Left languages
[languages.fr]
contentDir = "content/fr"
languageCode = 'fr-FR'
weight = 2
title = "Ananke Fr"
[sitemap]
changefreq = "monthly"
priority = 0.5
filename = "sitemap.xml"
[params]
mainSections = ["post"]
text_color = ""
author = "Victor Hugo" # default author, override via `author` in a posts front matter
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 fitting and alignment styles 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"
# choose a color dimming class for the page or site header from any on this page: https://tachyons.io/docs/themes/skins/, preface it with "bg-" and add the value such as "-X0" where X is in [1,9]
cover_dimming_class = "bg-black-60"
recent_posts_number = 3
[params.ananke.social.share]
networks = [
"email",
"facebook",
"bluesky",
"linkedin"
]
[params.ananke.social.follow]
networks = [
"facebook",
"bluesky",
"linkedin",
"wikipedia"
]
[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"
[params.ananke.social.wikipedia]
username = "Hugo_(software)"
[params.ananke.social.networks.wikipedia]
slug = "wikipedia"
label = "Wikipedia"
color = "#0645ad"
profile = "https://en.wikipedia.org/wiki/%s"
icon = "wikipedia-w"