From f610a40ea2e3994eab6b8771804e2e8ea4253610 Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Wed, 26 Nov 2025 10:13:58 +0100 Subject: [PATCH 1/2] Add navigation menu to CMS --- src/content/navigation-menu.md | 3 --- static/admin/config.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/content/navigation-menu.md b/src/content/navigation-menu.md index 85a75e07..e5a343f0 100644 --- a/src/content/navigation-menu.md +++ b/src/content/navigation-menu.md @@ -47,9 +47,6 @@ menuItems: link: /grants - title: Online communities link: /communities -button: - title: Bridge - link: https://bridge.alephium.org/ socialIcons: - Twitter/X - Discord diff --git a/static/admin/config.yml b/static/admin/config.yml index 34461280..c4c4f44f 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -59,6 +59,33 @@ collections: hint: 'Related posts listed at the bottom of the article. You can search by post title.' required: false - { label: 'Body', name: 'body', widget: 'markdown' } + - name: 'menus' + label: 'Menus' + files: + - label: 'Main navigation menu' + name: 'navigation-menu' + file: "src/content/navigation-menu.md" + fields: + - label: 'Menu items' + name: 'menuItems' + widget: 'list' + summary: '{{fields.title}}' + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - label: 'Items' + name: 'items' + widget: 'list' + summary: '{{fields.title}}' + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Link', name: 'link', widget: 'string', required: false } + - label: 'Social platforms icons' + name: 'socialIcons' + widget: 'select' + multiple: true + options: + - Twitter/X + - Discord - name: 'roadmap' label: 'Roadmap' folder: 'src/content/roadmap' From 6387e78b11d81c205842c18b21570a189491079c Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Wed, 26 Nov 2025 10:21:23 +0100 Subject: [PATCH 2/2] Add footer menu to CMS --- static/admin/config.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index c4c4f44f..a1ff44da 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -84,8 +84,41 @@ collections: widget: 'select' multiple: true options: - - Twitter/X - Discord + - Telegram + - Twitter/X + - GitHub + - label: 'Footer menu' + name: 'footer' + file: "src/content/footer.md" + fields: + - label: 'Columns' + name: 'columns' + widget: 'list' + summary: '{{fields.title}}' + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - label: 'Items' + name: 'links' + widget: 'list' + summary: '{{fields.text}}' + fields: + - { label: 'Title', name: 'text', widget: 'string' } + - { label: 'Link', name: 'url', widget: 'string' } + - label: 'Bottom' + name: 'bottom' + widget: 'object' + fields: + - label: 'Social platforms icons' + name: 'socials' + widget: 'select' + multiple: true + options: + - Discord + - Telegram + - Twitter/X + - GitHub + - { label: 'Text', name: 'text', widget: 'string' } - name: 'roadmap' label: 'Roadmap' folder: 'src/content/roadmap'