Skip to content

Commit cda71a7

Browse files
authored
Merge pull request #402 from alephium/nav-cms
Add nav menu and footer in CMS
2 parents 5583c7c + 6387e78 commit cda71a7

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed

src/content/navigation-menu.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ menuItems:
4747
link: /grants
4848
- title: Online communities
4949
link: /communities
50-
button:
51-
title: Bridge
52-
link: https://bridge.alephium.org/
5350
socialIcons:
5451
- Twitter/X
5552
- Discord

static/admin/config.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,66 @@ collections:
5959
hint: 'Related posts listed at the bottom of the article. You can search by post title.'
6060
required: false
6161
- { label: 'Body', name: 'body', widget: 'markdown' }
62+
- name: 'menus'
63+
label: 'Menus'
64+
files:
65+
- label: 'Main navigation menu'
66+
name: 'navigation-menu'
67+
file: "src/content/navigation-menu.md"
68+
fields:
69+
- label: 'Menu items'
70+
name: 'menuItems'
71+
widget: 'list'
72+
summary: '{{fields.title}}'
73+
fields:
74+
- { label: 'Title', name: 'title', widget: 'string' }
75+
- label: 'Items'
76+
name: 'items'
77+
widget: 'list'
78+
summary: '{{fields.title}}'
79+
fields:
80+
- { label: 'Title', name: 'title', widget: 'string' }
81+
- { label: 'Link', name: 'link', widget: 'string', required: false }
82+
- label: 'Social platforms icons'
83+
name: 'socialIcons'
84+
widget: 'select'
85+
multiple: true
86+
options:
87+
- Discord
88+
- Telegram
89+
- Twitter/X
90+
- GitHub
91+
- label: 'Footer menu'
92+
name: 'footer'
93+
file: "src/content/footer.md"
94+
fields:
95+
- label: 'Columns'
96+
name: 'columns'
97+
widget: 'list'
98+
summary: '{{fields.title}}'
99+
fields:
100+
- { label: 'Title', name: 'title', widget: 'string' }
101+
- label: 'Items'
102+
name: 'links'
103+
widget: 'list'
104+
summary: '{{fields.text}}'
105+
fields:
106+
- { label: 'Title', name: 'text', widget: 'string' }
107+
- { label: 'Link', name: 'url', widget: 'string' }
108+
- label: 'Bottom'
109+
name: 'bottom'
110+
widget: 'object'
111+
fields:
112+
- label: 'Social platforms icons'
113+
name: 'socials'
114+
widget: 'select'
115+
multiple: true
116+
options:
117+
- Discord
118+
- Telegram
119+
- Twitter/X
120+
- GitHub
121+
- { label: 'Text', name: 'text', widget: 'string' }
62122
- name: 'roadmap'
63123
label: 'Roadmap'
64124
folder: 'src/content/roadmap'

0 commit comments

Comments
 (0)