Breadcrumbs in DocPad -


i'm dealing project has flat hierarchy when comes file , folder structure, means directly subordinated url. e.g. myproject.com/page1

this seems make bit more tricky integrate breadcrumb overview of on page, actual hierarchy of contents not flat. therefore of beginner friendly javascript breadcrumb solutions, more or less seem hierarchy out of file structure tree, won't job here.

i thinking use meta information of documents assign/display hierarchy. unfortunately coffescript skills way low think how integrate breadcrumbs @ level.

my idea (which might not clever one?!) have values "tier1", "tier2" , "tier3" in meta section, converted breadcrumb link structure coffeescript magic.

does have hints how started? hope others getting discussion started - maybe come niftier solution approach?

the docpad , bevry website accomplishes it's documentation rendering , corresponding hierarchy. however, code quite specialised.

a breadcrumbs plugin makes super easy awesome. way 1 go have parent: blah meta data attribute, plugin auto-setting when doesn't exist already. set relativepath of document , use fuzzyfindone find - https://github.com/bevry/docpad/blob/51bb734dfd064a05d9047ca1f8687aa0a39f5450/src/lib/collections/files.coffee#l22-l42 - set string value guess if parent document doesn't exist. parent documents don't exist, importers api used inject document anyway.

the question is, want breadcrumbs documents/files based? or category based docpad+bevry websites?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -