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

make headings have an accessible anchor #3

Closed
butonic opened this issue Feb 26, 2020 · 3 comments
Closed

make headings have an accessible anchor #3

butonic opened this issue Feb 26, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@butonic
Copy link
Member

butonic commented Feb 26, 2020

so we can link to headings like with the one below

Level 1

Level 2

Level 3

edit: ... well sort of ...

@xoxys
Copy link
Contributor

xoxys commented Feb 26, 2020

Anchors are already available e.g. https://owncloud.github.io/extensions/ocis_reva/users/#json-driver. I know it would be cool to have a link you can easily copy. But it's not that easy with hugo and even harder if you want to avoid JavaScript as much as possible...

@xoxys
Copy link
Contributor

xoxys commented Feb 26, 2020

https://github.com/gohugoio/gohugoioTheme/blob/9d6c945dcb655c2b6295c0f5fad23a92b0a9e5f3/assets/js/anchorforid.js

That's how the gohugo theme solved it. I'll have a look later

@xoxys
Copy link
Contributor

xoxys commented Feb 26, 2020

Fixed by #4 @butonic please review

@xoxys xoxys added the enhancement New feature or request label Feb 26, 2020
@butonic butonic closed this as completed Feb 27, 2020
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

No branches or pull requests

2 participants