-
I ran into a pretty specific issue with the tag index page. My documentation consists of many sections and most of the sections have an "Introduction" page. Some of the Introduction pages can be tagged with the same tag and the issue is that on the tag index page I cannot tell to which section does a page belong to. See image below. Is there any way to include the section names with the page titles? So I can get for example "Writing Alt Text for Images - Introduction"? I can only think of an ugly hack using CSS where I could force in the section name through pseudo :before tied to the links href value. Which does solve it, but it's not very maintainable. In case I rename the section or change the folder name, I will need to update the selector as well. How would you solve for this problem? @squidfunk sorry to bother, but I was hoping you could share your view on this. Maybe you have thought about this in the past? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This sounds like a good addition to the tags plugin. Should section names be added to each entry, or only if they need clarification? How should it work? Note that solving this with JS is not optimal – on slow connections it might not work at all or induce content shifts. |
Beta Was this translation helpful? Give feedback.
-
You can change the name of a page as rendered by the tags and social plugin via the ---
title: Lorem ipsum dolor sit amet
---
# Document title
...
|
Beta Was this translation helpful? Give feedback.
You can change the name of a page as rendered by the tags and social plugin via the
title
front matter property: