-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1890ef2
commit 4ed7120
Showing
9 changed files
with
320 additions
and
165 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
<link rel="stylesheet" href="/variables-light.css" media="(prefers-color-scheme: light)" /> | ||
<link rel="stylesheet" href="/variables-dark.css" media="(prefers-color-scheme: dark)" /> | ||
<link rel="stylesheet" href="/_includes/assets/css/mbta.css" /> | ||
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/[email protected]/dist/cdn.min.js"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link href="https://unpkg.com/[email protected]/themes/prism-okaidia.min.css" rel="stylesheet" /> | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<nav label="Breadcrumb" class="py-2 bg-slate-100"> | ||
<nav label="Breadcrumb" class="py-2"> | ||
{% set bPages = collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key, { includeSelf: true }) %} | ||
<div class="container mx-auto px-3"> | ||
{%- for entry in bPages %} | ||
{%- if not loop.first %} | ||
<i class="fa-solid fa-chevron-right px-2" aria-hidden="true"></i> | ||
{%- endif %} | ||
<a class="underline underline-offset-4 decoration-2 hover:decoration-4" href="{{ entry.url }}">{{ entry.title }}</a> | ||
<a class="hover:decoration-4" href="{{ entry.url }}">{{ entry.title }}</a> | ||
{%- endfor -%} | ||
</div> | ||
</nav> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<nav class="mbta--nav"> | ||
<div class="container mx-auto px-3"> | ||
<a class="mbta--logo" href="https://www.mbta.com"> | ||
<img role="img" src="https://cdn.mbta.com/images/mbta-name-and-logo.svg" width="198" height="36" alt="Massachusetts Bay Transportation Authority" /> | ||
<img role="img" src="https://cdn.mbta.com/images/mbta-logo.svg" width="36"height="36" alt="Massachusetts Bay Transportation Authority" /> | ||
</a> | ||
</div> | ||
</nav> | ||
<div class="container mx-auto px-3"> | ||
<a class="mbta--logo" href="https://www.mbta.com"> | ||
<img role="img" src="https://cdn.mbta.com/images/mbta-name-and-logo.svg" width="198" height="36" alt="Massachusetts Bay Transportation Authority" /> | ||
<img role="img" src="https://cdn.mbta.com/images/mbta-logo.svg" width="36"height="36" alt="Massachusetts Bay Transportation Authority" /> | ||
</a> | ||
</div> | ||
</nav> |
21 changes: 21 additions & 0 deletions
21
documentation/_includes/partials/local-nav-mobile-menu.njk
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% set navPages = collections.all | eleventyNavigation %} | ||
<ul class="py-3"> | ||
{%- for entry in navPages -%} | ||
{%- if entry.children.length -%} | ||
<li class="mt-2 font-heading !font-bold text-lg text-black"> | ||
<a class="{{ 'active' if entry.url == page.url }}" href="{{entry.url}}">{{entry.title}}</a> | ||
</li> | ||
<ul> | ||
{%- for child in entry.children -%} | ||
<li> | ||
<a class="{{ 'active' if child.url == page.url }}" href="{{child.url}}">{{child.title}}</a> | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
{%- else -%} | ||
<li> | ||
<a class="{{ 'active' if entry.url == page.url }}" href="{{entry.url}}">{{entry.title}}</a> | ||
</li> | ||
{%- endif -%} | ||
{%- endfor -%} | ||
</ul> |
Oops, something went wrong.