Implementing breadcrumb navigation in hugo?

So there’s “history breadcrumbs” and “position breadcrumbs” each has a benefit, and each has a drawback. The solution to position breadcrumbs is in this thread already. However the “history breadcrumbs” aren’t. I happend to stumble upon this old article that uses javascript and cookies to solve it.

It certainly can be improved by popping multiple entries off the stack when the user clicks one of the breadcrumbs, but it’s a starting place.

http://www.whitford.id.au/webmonkey/code/breadcrumbs/history_crumbs/javascript.php