Last active
May 2, 2024 16:02
-
-
Save matthodgson/926b3709ff00fc6f3ba64e7121e6876c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# A place to store various useful twig snippets #} | |
{# Get the first segment of the current url/path #} | |
{% set site_path = path('<current>') %} | |
{% set parent_path = site_path|split('/') %} | |
<div class="menu-name d-none d-lg-block"><a href="/{{ parent_path.1 }}">{{ name }} Menu</a></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment