feat: ADD dropdown field for the menu #28

This commit is contained in:
Caffeine Fueled 2026-07-04 08:27:13 +02:00
parent c3ef992a89
commit 8e91571121
Signed by: cf7
GPG key ID: CA295D643074C68C
3 changed files with 75 additions and 1 deletions

View file

@ -11,10 +11,17 @@ THEME = "default"
# Exclude specific sections from the main page (they'll still have their own /section/name/ pages)
EXCLUDE_SECTIONS_FROM_MAIN = ['draft','private'] # e.g., ['python', 'drafts']
# Navigation bar items - list of dictionaries with 'text' and 'url' keys
# Navigation bar items - list of dictionaries with 'text' and 'url' keys.
# Add a 'children' list to turn an item into a one-level dropdown menu.
# A dropdown parent is a clickable link if it has a 'url'; omit 'url' to make
# it a label that only opens the menu.
NAVBAR_ITEMS = [
{'text': 'Home', 'url': '/'},
{'text': 'Sections', 'url': '/section/'},
{'text': 'Projects', 'url': '/projects/', 'children': [
{'text': 'All Projects', 'url': '/projects/'},
{'text': 'Another Project', 'url': '/projects/another-project/'},
]},
{'text': 'About', 'url': '/about/'},
{'text': 'RSS', 'url': '/rss.xml'}
]