Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom attribute from front matter for side menu title #488

Open
mnlbox opened this issue Oct 30, 2024 · 1 comment
Open

Custom attribute from front matter for side menu title #488

mnlbox opened this issue Oct 30, 2024 · 1 comment

Comments

@mnlbox
Copy link

mnlbox commented Oct 30, 2024

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?

{{ $title = .File.BaseFileName | humanize | title }}

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

Problem/Solution

Alternatives Considered

Additional Context

@imfing
Copy link
Owner

imfing commented Oct 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants