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

Anchors (permalinks) for paragraphs #459

Open
2 of 3 tasks
stalkerGH opened this issue Jan 9, 2025 · 1 comment
Open
2 of 3 tasks

Anchors (permalinks) for paragraphs #459

stalkerGH opened this issue Jan 9, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@stalkerGH
Copy link

Summary and motivation

Recently I found interesting feature on Public Domain Review webpage (https://publicdomainreview.org). In longer texts with many paragraphs every paragraph has its own anchor. In my opinion it could be interesting addon for tabi - linking internally or externally you can point directly to the excerpt from the text which you want to share or recall. It could be helpful supplement to current feature anchoring to sections.

Implementation details

Anchor symbol shows when mouse cursor is placed above paragraph - link symbol shows in first line of paragraph, left side. let's look on this particular page: https://publicdomainreview.org/blog/2025/01/public-domain-day-2025/

image

Checklist

  • I've searched existing issues to make sure this feature hasn't already been requested.
  • This feature aligns with tabi's philosophy (minimal JS, accessible…)
  • I'm willing to contribute to the implementation of this feature.
@stalkerGH stalkerGH added the enhancement New feature or request label Jan 9, 2025
@stalkerGH stalkerGH changed the title Anchors (permalinks) for pargraphs Anchors (permalinks) for paragraphs Jan 9, 2025
@welpo
Copy link
Owner

welpo commented Jan 11, 2025

The header anchors are added by Zola.

I did some testing and I believe it might be possible to achieve this in tabi (i.e. add anchor to all paragraphs in an article).

However, I believe this might be a better addition to Zola itself. tabi would style the anchors, just like with header anchors.

Alternatively, we could have a shortcode that adds the necessary HTML for paragraph anchors to happen. I'm not sure how useful this would be, as the manual process might miss the point of the feature.

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