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

Add anchor links #2009

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JacksonChen666
Copy link

See https://www.getzola.org/documentation/content/section/#front-matter after the configs, it writes:

"Keep in mind that any configuration options apply only to the direct pages, not to the subsections' pages."

So it must be applied to all _index.md for it to be everywhere.

I have not applied the same thing for folders without a _index.md file, and anchor links doesn't seem to be applied to <h1> elements (maybe within <header>). It's possible I may have missed something.

fixes #1760

See https://www.getzola.org/documentation/content/section/#front-matter
after the configs, it writes:

"Keep in mind that any configuration options apply only to the direct
pages, not to the subsections' pages."

So it must be applied to all _index.md for it to be everywhere.

I have not applied the same thing for folders without a `_index.md`
file, and anchor links doesn't seem to be applied to `<h1>` elements
(maybe within `<header>`). It's possible I may have missed something.

fixes matrix-org#1760
@thibaultamartin
Copy link
Contributor

Thanks for the PR and sorry for getting back to you this late. I'm a bit wary of adding a change to so many files at once, something feels wrong here.

It looks like Zola doesn't support another way to doing it, but I wonder if that's something that should be brought and fixed upstream 🤔

@JacksonChen666
Copy link
Author

It looks like Zola doesn't support another way to doing it, but I wonder if that's something that should be brought and fixed upstream 🤔

it does seem to be a commonly complained issue, not sure what actions have been taken.

@MTRNord MTRNord added the enhancement This would be an improvement to the website. label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This would be an improvement to the website.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anchors don't appear for titles in the blog posts
3 participants