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

[Help] How to insert permalinks to headings? #805

Open
enricogandini opened this issue Jan 23, 2022 · 0 comments
Open

[Help] How to insert permalinks to headings? #805

enricogandini opened this issue Jan 23, 2022 · 0 comments

Comments

@enricogandini
Copy link

I am new to Pelican (and to web development). I would like to create a simple blog using Pelican, and I have chosen the awesome Elegant theme.

By browsing websites built with the Elegant theme (and the official Elegant theme website itself), I found out that the headings in the articles have permalinks: by hovering the mouse on the heading, the "chain" icon appears, with a link to the webpage itself, ending with a # symbol followed by the slugified heading. I think that the feature is very useful, since it allows sharing a link to a specific part of an article.

How can I do that in my website? I was not able to find a clear answer. I am using reStructuredText, not Markdown.
I found this article on the official website, but it is Markdown-specific: is it the only way to get permalinks to headings? Should I use Markdown instead of reStructuredText?

I also tried the permalink plugin, but I was not able to make it work: it is not well-documented, and probably it is no longer supported.

The only way I found to get a similar (but not identical) result is through the reStructuredText contents directive. But I would prefer the permalinks that I found in the Elegant websites I have browsed.

I thank you in advance for any suggestions, and I apologize if this is not the right place to ask this question. Maybe I should have tried the Pelican GitHub page, but I thought that there may be an Elegant-specific solution to the problem (even though the problem occurs with all the themes I have tried).

I am using the latest production release of Elegant, with Pelican 4.7.1, and Python 3.10.1.

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

No branches or pull requests

1 participant