Logs for #nikola for 2024-07-19

17:51:04 <neildarlow> I have a site with both posts and pages. There is a navigation link named "Tags". Is there an easy way for this link to point to /tags/index.html for posts and /page_tags/index.html depending upon whether you're viewing a post (default) or a page? I've been digging around the navigation stuff in base/templates/page.tmpl and bootstrap4/templates/post.tmpl but can't determine an easy override. I'm using the Bootswatch/Sands
19:23:12 <ChrisWarrick> neildarlow: This would be a bit tricky, but you could try using the `pagekind` template variable. There might also be a block in the navbar you could override in a child template.
19:25:04 <ChrisWarrick> neildarlow: In fact, overriding html_navigation_links and adding a call to super and a <li> elementmight be viable. Or use the `menu` template hook.