Skip to content
Discussion options

You must be logged in to vote

Thank you for your answer. I had to ask some help to Mistral AI, because this is a bit above my knowledge, but result is quite good for now.
It works with the following filter in place of the default $pages expression :
{{ $pages := where .Site.Pages "Params.categories" "intersect" (slice "Voyage") }}

I also change the header section of the voyages.html file to display only the corresponding tile for that category. It also displays the image defined in the category front matter and not the one from the first post from that category.

<header>
    {{ $voyage := site.GetPage "/categories/voyage" }}
    {{ with $voyage }}
        <div class="subsection-list">
            <div class="article-…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants