Files
swangnice_site/config/_default/menus.en.toml
2025-07-25 02:15:37 +08:00

119 lines
2.1 KiB
TOML

# -- Main Menu --
# The main menu is displayed in the header at the top of the page.
# Acceptable parameters are name, pageRef, page, url, title, weight.
#
# The simplest menu configuration is to provide:
# name = The name to be displayed for this menu link
# pageRef = The identifier of the page or section to link to
#
# By default the menu is ordered alphabetically. This can be
# overridden by providing a weight value. The menu will then be
# ordered by weight from lowest to highest.
[[main]]
name = "Home"
url = "/en/"
weight = 1
# Notes
[[main]]
identifier = "notes"
name = "Notes"
pageRef = "/notes/"
weight = 30
[[main]]
name = "Coding"
url = "/notes/coding/"
parent = "notes"
weight = 10
[[main]]
name = "PDF Collection"
url = "/notes/pdf/"
parent = "notes"
weight = 20
# ===============Projects===============
[[main]]
identifier = "projects"
name = "Projects"
pageRef = "/projects/"
weight = 50
# [[main]]
# name = "AI"
# url = "/projects/ai/"
# parent = "projects"
# weight = 10
[[main]]
name = "Fancy Things on Boards"
url = "/projects/embedded/"
parent = "projects"
weight = 20
# [[main]]
# name = "Game"
# url = "/projects/game/"
# parent = "projects"
# weight = 30
# [[main]]
# name = "Robotics"
# url = "/projects/robotics/"
# parent = "projects"
# weight = 40
[[main]]
name = "Self-host"
url = "/projects/self_host/"
parent = "projects"
weight = 50
# Life
[[main]]
identifier = "life"
name = "RestHere"
pageRef = "/life/"
weight = 70
[[main]]
name = "My Pet"
url = "/life/pet/"
parent = "life"
weight = 5
[[main]]
name = "My Travel"
url = "/life/travel/"
parent = "life"
weight = 10
[[main]]
identifier = "web"
pre = "link"
url = "https://swangnice.com"
weight = 80
[[main]]
identifier = "github"
pre = "github"
url = "https://github.com/swangnice"
weight = 90
# -- Footer Menu --
# The footer menu is displayed at the bottom of the page, just before
# the copyright notice. Configure as per the main menu above.
[[footer]]
name = "Tags"
pageRef = "tags"
weight = 10