diff --git a/config/sync/block.block.opdavies_mainnavigation.yml b/config/sync/block.block.opdavies_mainnavigation.yml new file mode 100644 index 000000000..ee44acc49 --- /dev/null +++ b/config/sync/block.block.opdavies_mainnavigation.yml @@ -0,0 +1,25 @@ +uuid: 99c8b757-57b6-4c44-81ac-46063b0bacac +langcode: en +status: true +dependencies: + config: + - system.menu.main + module: + - system + theme: + - opdavies +id: opdavies_mainnavigation +theme: opdavies +region: footer +weight: 0 +provider: null +plugin: 'system_menu_block:main' +settings: + id: 'system_menu_block:main' + label: 'Main navigation' + label_display: '0' + provider: system + level: 1 + depth: 0 + expand_all_items: false +visibility: { } diff --git a/config/sync/core.menu.static_menu_link_overrides.yml b/config/sync/core.menu.static_menu_link_overrides.yml index eb6e35ee2..890a9ed9e 100644 --- a/config/sync/core.menu.static_menu_link_overrides.yml +++ b/config/sync/core.menu.static_menu_link_overrides.yml @@ -7,3 +7,9 @@ definitions: weight: 0 expanded: false enabled: true + standard__front_page: + weight: -50 + menu_name: main + parent: '' + enabled: true + expanded: false diff --git a/config/sync/system.performance.yml b/config/sync/system.performance.yml index 61f4e1531..b939d47e0 100644 --- a/config/sync/system.performance.yml +++ b/config/sync/system.performance.yml @@ -2,9 +2,9 @@ _core: default_config_hash: jtno5biznHZbrIgKwzq-ze-7XaQxLCGe6PeUOR7bRiQ cache: page: - max_age: 0 + max_age: 3600 css: - preprocess: false + preprocess: true gzip: true fast_404: enabled: true @@ -12,5 +12,5 @@ fast_404: exclude_paths: '/\/(?:styles|imagecache)\//' html: '
The requested URL "@path" was not found on this server.
' js: - preprocess: false + preprocess: true gzip: true diff --git a/content/menu_link_content.daf937a0-f3cf-485d-aba7-b31832450637.json b/content/menu_link_content.daf937a0-f3cf-485d-aba7-b31832450637.json index 47378adfb..32af0138e 100644 --- a/content/menu_link_content.daf937a0-f3cf-485d-aba7-b31832450637.json +++ b/content/menu_link_content.daf937a0-f3cf-485d-aba7-b31832450637.json @@ -31,7 +31,11 @@ "value": "Contact" } ], - "description": [], + "description": [ + { + "value": "Email Oliver" + } + ], "menu_name": [ { "value": "main" @@ -67,7 +71,7 @@ "parent": [], "changed": [ { - "value": "2025-04-16T18:24:30+00:00" + "value": "2025-05-11T14:44:00+00:00" } ], "default_langcode": [ diff --git a/web/themes/custom/opdavies/templates/menu--main.html.twig b/web/themes/custom/opdavies/templates/menu--main.html.twig new file mode 100644 index 000000000..721a56f12 --- /dev/null +++ b/web/themes/custom/opdavies/templates/menu--main.html.twig @@ -0,0 +1,49 @@ +{# +/** + * @file + * Default theme implementation to display a menu. + * + * Available variables: + * - menu_name: The machine name of the menu. + * - items: A nested list of menu items. Each menu item contains: + * - attributes: HTML attributes for the menu item. + * - below: The menu item child items. + * - title: The menu link title. + * - url: The menu link URL, instance of \Drupal\Core\Url + * - localized_options: Menu link localized options. + * - is_expanded: TRUE if the link has visible children within the current + * menu tree. + * - is_collapsed: TRUE if the link has children within the current menu tree + * that are not currently visible. + * - in_active_trail: TRUE if the link is in the active trail. + * + * @ingroup themeable + */ +#} +{% import _self as menus %} + +{{ menus.menu_links(items, attributes, 0) }} + +{% macro menu_links(items, attributes, menu_level) %} + {% import _self as menus %} + {% if items %} + {% if menu_level == 0 %} +