Add breadcrumbs for navigation to web theme
Bug #1429079 reported by
Daniel Holbach
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Help App |
Triaged
|
High
|
Unassigned |
Bug Description
Add breadcrumbs for navigation to web theme
Changed in help-app: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in help-app: | |
milestone: | none → 0.2 |
Changed in help-app: | |
milestone: | 0.2 → 0.3 |
tags: | added: web |
Changed in help-app: | |
milestone: | 0.3 → backlog |
To post a comment you must log in.
I'm not quite sure what the best way to do this is. For navigation, pages need to have the concept of their parent and their siblings, and probably the order of the siblings.
An idea could be to define metadata on each .md file defining this, and then let a Pelican extension export that as variables that can be used in templates. E.g.
faq.md:
Title: Settings
Parent: "Welcome to the Ubuntu Help app"
Siblings: "Apps", "Settings", "First day tasks"
page.html:
<ul>
{% for sibling in siblings %}
<li>sibling</li>
{% %}
</ul>