Skip to content

Commit

Permalink
Removing news items from navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveBathnes committed Sep 18, 2024
1 parent 38323f1 commit 5396cd9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ tags:
published: true
layout: news
parent: News
nav_exclude: true
---
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ synopsis: >-
published: true
layout: news
parent: News
nav_exclude: true
---
56 changes: 14 additions & 42 deletions admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -595,6 +581,7 @@ collections:
- *PUBLISHED
- *NEWS_LAYOUT
- { label: "Parent", name: "parent", widget: "hidden", default: "News" }
- *NAV_EXCLUDE

- name: "news_archive"
label: "News archive"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 5396cd9

Please sign in to comment.