imfing / hextra

🔯 Modern, batteries-included Hugo theme for creating beautiful doc, blog and static websites
https://imfing.github.io/hextra/
MIT License
735 stars 175 forks source link

Custom attribute from front matter for side menu title #488

Open mnlbox opened 3 weeks ago

mnlbox commented 3 weeks ago

Feature Description Hi,

I would like to use .Date variable of page for side menu text value. As I checked title.html partial it seems you are using filename value as fallback. How can I change this behaviour and overwrite this partial without forking Hextra? https://github.com/imfing/hextra/blob/7b7eb0f1f32c401d5f76337b32af4996cfc67d94/layouts/partials/utils/title.html#L16

Sorry if it's simple, I'm new in Hugo.

Problem/Solution

Alternatives Considered

Additional Context

imfing commented 3 weeks ago

https://discourse.gohugo.io/t/how-to-override-a-themes-partials/47227