feat: ADD dropdown field for the menu #28
This commit is contained in:
parent
c3ef992a89
commit
8e91571121
3 changed files with 75 additions and 1 deletions
|
|
@ -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'}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue