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 header anchors #2570

Merged
merged 3 commits into from
Dec 13, 2024
Merged

Add header anchors #2570

merged 3 commits into from
Dec 13, 2024

Conversation

MTRNord
Copy link
Collaborator

@MTRNord MTRNord commented Nov 29, 2024

Fixes #2367
Fixes #1760

It seems to work I guess? We can improve upon it at a later stage with some design perhaps but this seems sufficient and fixes long standing annoyance

image

@HarHarLinks
Copy link
Contributor

any test deployment?

@thibaultamartin
Copy link
Contributor

Also supersedes #2009. I can't say I'm a huge fan of having to add something of the frontmatter of every single post, but we can adopt it and report to the zola maintainers that it'd be useful to have an option at the folder level

Copy link
Contributor

@thibaultamartin thibaultamartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you squeeze in the 2024/12/_index.md file?

@MTRNord
Copy link
Collaborator Author

MTRNord commented Dec 5, 2024

any test deployment?

Apparently cloudflare bot was sleepy on this one...

Copy link

cloudflare-workers-and-pages bot commented Dec 13, 2024

Deploying matrix-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7785c93
Status: ✅  Deploy successful!
Preview URL: https://6426ba03.matrix-website.pages.dev
Branch Preview URL: https://mtrnord-anchors.matrix-website.pages.dev

View logs

@MTRNord
Copy link
Collaborator Author

MTRNord commented Dec 13, 2024

Can you squeeze in the 2024/12/_index.md file?

Done

Copy link
Contributor

@thibaultamartin thibaultamartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sad to approve it, but there is no way around it for now. Thanks for tackling it.

Ideally if you could also update the CONTRIBUTE.md to point out that the insert_anchor_links needs to be in the month/_index.md that would be great. Not blocking on it, we can do in a separate PR if you want.

@MTRNord MTRNord mentioned this pull request Dec 13, 2024
15 tasks
@MTRNord MTRNord merged commit 15cd696 into main Dec 13, 2024
3 checks passed
@MTRNord MTRNord deleted the MTRNord/anchors branch December 13, 2024 13:30
@JacksonChen666 JacksonChen666 mentioned this pull request Dec 13, 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

Successfully merging this pull request may close these issues.

Add clickable anchor links to get links to sections Anchors don't appear for titles in the blog posts
3 participants