Help with using breadcrumbs

13 views
Skip to first unread message

J K

unread,
Sep 20, 2020, 10:23:00 AM9/20/20
to nikola-discuss
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.

Thanks

Chris Warrick

unread,
Sep 20, 2020, 6:21:56 PM9/20/20
to Nikola—Discuss
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

J K

unread,
Oct 2, 2020, 3:22:25 AM10/2/20
to nikola-discuss
Thanks Chris. I'll have to figure out how to use post data and the _link function. May be a future project for me :-)
Reply all
Reply to author
Forward
0 new messages