kc0bfv / autophugo

AutoPhugo [ˌɔtoʊˈfjuːgəʊ] is a gallery/photoblog theme for Hugo that's a little more automatic than Phugo.
Other
97 stars 56 forks source link

Navigation bar uses title of the pages to compose the breadcrumb #16

Closed fabrizio2210 closed 3 years ago

fabrizio2210 commented 3 years ago

In some cases the path cannot contain some characters due to the filesystem restriction (e.g /) or it is better not to use it (e.g. ). Moreover, using the title of the pages allows to be more consistent with the title of the albums.

kc0bfv commented 3 years ago

Thanks - I added the first commit, the second didn't seem like the same issue, and it was really messing up the way things looked when clicking on a photo.

I modified the way this was done to make this an option in the config file. By default - old method is used. The breadcrumb is intended to look like a path, thus the URL part. However - it makes sense that the title would go there too - so, it's an option.

Thanks for the submission!

fabrizio2210 commented 3 years ago

You are right, the second commit wasn't supposed to be here. It was another feature useful just for me. Sorry about that!

Il dom 4 apr 2021, 18:50 Karl @.***> ha scritto:

Closed #16 https://github.com/kc0bfv/autophugo/pull/16.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kc0bfv/autophugo/pull/16#event-4549295248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFCQK5XC4ZMB24U4FPRZ4TTHCKENANCNFSM4Z3UEUSA .