From 5396cd9f48f9a842bdb579b3eb82b8316dd62134 Mon Sep 17 00:00:00 2001 From: Dave <8709533+DaveBathnes@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:20:29 +0100 Subject: [PATCH] Removing news items from navigation --- ...n-help-the-post-pandemic-student-thrive.md | 1 + ...diary-lyngsoe-systems-library-solutions.md | 1 + admin/config.yml | 56 +++++-------------- 3 files changed, 16 insertions(+), 42 deletions(-) diff --git a/News/2024-09-18-how-academic-libraries-can-help-the-post-pandemic-student-thrive.md b/News/2024-09-18-how-academic-libraries-can-help-the-post-pandemic-student-thrive.md index b81a2d8..06fc361 100644 --- a/News/2024-09-18-how-academic-libraries-can-help-the-post-pandemic-student-thrive.md +++ b/News/2024-09-18-how-academic-libraries-can-help-the-post-pandemic-student-thrive.md @@ -18,4 +18,5 @@ tags: published: true layout: news parent: News +nav_exclude: true --- diff --git a/News/2024-09-18-lyngsoe-systems-group-announces-formation-of-new-subsidiary-lyngsoe-systems-library-solutions.md b/News/2024-09-18-lyngsoe-systems-group-announces-formation-of-new-subsidiary-lyngsoe-systems-library-solutions.md index 63716f3..4bda099 100644 --- a/News/2024-09-18-lyngsoe-systems-group-announces-formation-of-new-subsidiary-lyngsoe-systems-library-solutions.md +++ b/News/2024-09-18-lyngsoe-systems-group-announces-formation-of-new-subsidiary-lyngsoe-systems-library-solutions.md @@ -15,4 +15,5 @@ synopsis: >- published: true layout: news parent: News +nav_exclude: true --- diff --git a/admin/config.yml b/admin/config.yml index e89af5f..0719ad3 100644 --- a/admin/config.yml +++ b/admin/config.yml @@ -61,6 +61,12 @@ aliases: value_field: "title", search_fields: ["title"], } + - &NAV_EXCLUDE { + label: "Exclude from nav", + name: "nav_exclude", + widget: "hidden", + default: true, + } collections: - name: "tags" @@ -81,12 +87,7 @@ collections: widget: "hidden", default: "metatag", } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - label: "Structural pages" name: "structure" @@ -105,12 +106,7 @@ collections: widget: "hidden", default: false, } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - name: accessibility label: Accessibility statement file: accessibility.md @@ -125,12 +121,7 @@ collections: widget: "hidden", default: false, } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - name: analytics label: Analytics file: analytics.md @@ -150,12 +141,7 @@ collections: widget: "hidden", default: false, } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - label: "Title pages" name: "pages" @@ -595,6 +581,7 @@ collections: - *PUBLISHED - *NEWS_LAYOUT - { label: "Parent", name: "parent", widget: "hidden", default: "News" } + - *NAV_EXCLUDE - name: "news_archive" label: "News archive" @@ -624,12 +611,7 @@ collections: widget: "hidden", default: "News", } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - name: "helibtech_webinars" label: "HELibTech webinars" @@ -653,12 +635,7 @@ collections: widget: "hidden", default: "HELibTech webinars", } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - name: "past_webinars" label: "Past webinars" @@ -688,12 +665,7 @@ collections: widget: "hidden", default: "HELibTech webinars", } - - { - label: "Exclude from nav", - name: "nav_exclude", - widget: "hidden", - default: true, - } + - *NAV_EXCLUDE - name: "user_engagement" label: "User engagement"