How do I add tags to entries on the blog start page? My links aren't picking up the URL base there, but do elsewhere. #698
-
I have seen this discussion from 2019, but the answer there refers to files that don't exist in today's distribution so I assume something's been refactored since then. My tag links are working correctly in the following locations:
I would like to also show tag links with each entry on main blog pages. Taking inspiration from the "author" layout and individual blog posts (
This does not seem to be picking up the location prefix. Instead of URLs like I realize that on an individual blog page "this" is an entry while on blog-start "this" is the "container" (the blog). But I thought that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you're almost there. In the blog-start layout you should use
Hope this helps as a starting point. Steffen |
Beta Was this translation helpful? Give feedback.
I think you're almost there. In the blog-start layout you should use
getLocation(true)
without additional API calls. Have a look at the author URL code in the entry meta section, it slightly differs from your tag URL's. Here is an example to show tags in blog-start layout.