On Sun, 20 Sep 2020 at 16:23, J K <[email protected]> wrote: > > Hi, > > I want to use breadcrumbs the following way. > > For pages: > Home > Page title > > For posts: > Home > Category > Post title > > Can someone please guide me how to go about implementing this? I tried to > look in to the ui_helper.tmpl file but I didn't understand what to do with > it. I am not an expert programmer. I have some basic knowledge in html and > basic python.
The breadcrumbs macro is intended for breadcrumbs provided from code, for galleries and listings. You could build something with this and a custom function passed in via GLOBAL_CONTEXT, although I believe it would be easier to build something yourself, using Bootstrap4 breadcrumbs [0] directly in templates. You can take the breadcrumbs samples, and then use post data and the _link function to build category links. [0]: https://getbootstrap.com/docs/4.5/components/breadcrumb/ -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CAMw%2Bj7JMSBxHYdhvqDqowBrpFaAG%3DPJfMPDX%2BNqunFhsaqsN%2Bg%40mail.gmail.com.
