Skip to content

Conversation

@timotheeandres
Copy link
Contributor

Instead of relying only on categories and tags, this allows users to specify their own partials, and for the given taxonomies, to generate them in the footers of posts.

Now, if users want to have cute links to some terms in the footer of their posts, they just need to:

  • have the taxonomy registered (see https://gohugo.io/configuration/taxonomies/),
  • add a table [params.taxonomyPartials], with the entries' keys equal to the plural form of the taxonomy and the values the path of the partial to be used.

For example, if there exists the following taxonomy:

[taxonomies]
  author = 'authors'

and a partial of name taxonomy/authors.html, then the following configuration will generate those partials in the footers of the articles and on the summaries of the homepage:

[params.taxonomyPartials]
authors = 'taxonomy/authors.html'

Checklist

Yes, I included all necessary artefacts, including:

  • Tests
  • Documentation
  • Implementation (Code and Ressources)
  • Example

Testing Checklist

Yes, I ensured that all of the following scenarios were tested:

  • Desktop Light Mode (Default)
  • Desktop Dark Mode
  • Desktop Light RTL Mode
  • Desktop Dark RTL Mode
  • Mobile Light Mode
  • Mobile Dark Mode
  • Mobile Light RTL Mode
  • Mobile Dark RTL Mode

Instead of relying only on categories and tags, this allows users to specify their own partials, and for the given taxonomies, to generate them in the footers of posts
@netlify
Copy link

netlify bot commented Apr 30, 2025

Deploy Preview for anatole-demo ready!

Name Link
🔨 Latest commit 22d1313
🔍 Latest deploy log https://app.netlify.com/sites/anatole-demo/deploys/6814f2aef82e6c0008683127
😎 Deploy Preview https://deploy-preview-558--anatole-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 89
Accessibility: 88
Best Practices: 100
SEO: 92
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@timotheeandres
Copy link
Contributor Author

How could/should I document these changes?

@timotheeandres timotheeandres marked this pull request as ready for review May 1, 2025 22:19
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 2, 2025

@lxndrblz lxndrblz self-assigned this Jun 7, 2025
@lxndrblz lxndrblz added the enhancement New feature or request label Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants