|
| 1 | +{#- |
| 2 | + This file was automatically generated - do not edit |
| 3 | +-#} |
| 4 | +{% set class = "md-header" %} |
| 5 | +{% if "navigation.tabs.sticky" in features %} |
| 6 | + {% set class = class ~ " md-header--shadow md-header--lifted" %} |
| 7 | +{% elif "header.autohide" not in features %} |
| 8 | + {% set class = class ~ " md-header--shadow" %} |
| 9 | +{% endif %} |
| 10 | +<header class="{{ class }}" data-md-component="header"> |
| 11 | + <nav class="md-header__inner md-grid" aria-label="{{ lang.t('header') }}"> |
| 12 | + <a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}" data-md-component="logo"> |
| 13 | + {% include "partials/logo.html" %} |
| 14 | + </a> |
| 15 | + <label class="md-header__button md-icon" for="__drawer"> |
| 16 | + {% set icon = config.theme.icon.menu or "material/menu" %} |
| 17 | + {% include ".icons/" ~ icon ~ ".svg" %} |
| 18 | + </label> |
| 19 | + <div class="md-header__title" data-md-component="header-title"> |
| 20 | + <div class="md-header__ellipsis"> |
| 21 | + <div class="md-header__topic"> |
| 22 | + <span class="md-ellipsis"> |
| 23 | + {{ config.site_name }} |
| 24 | + </span> |
| 25 | + </div> |
| 26 | + <div class="md-header__topic" data-md-component="header-topic"> |
| 27 | + <span class="md-ellipsis"> |
| 28 | + {% if page.meta and page.meta.title %} |
| 29 | + {{ page.meta.title }} |
| 30 | + {% else %} |
| 31 | + {{ page.title }} |
| 32 | + {% endif %} |
| 33 | + </span> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + |
| 38 | + <!-- Custom Apps Button --> |
| 39 | + <div class="md-header__button md-header__apps" style="margin-left: auto; margin-right: 0.4rem;"> |
| 40 | + <a href="https://apps.copdips.com/" target="_blank" rel="noopener noreferrer" title="Visit copdips's Apps Site" style="display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border-radius: 0.2rem; background-color: var(--md-accent-fg-color); color: var(--md-primary-bg-color); text-decoration: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; transition: all 0.2s ease; white-space: nowrap;"> |
| 41 | + APPs |
| 42 | + </a> |
| 43 | + <style> |
| 44 | + .md-header__apps a:hover { |
| 45 | + transform: translateY(-1px); |
| 46 | + box-shadow: 0 2px 8px rgba(0,0,0,0.3); |
| 47 | + opacity: 0.9; |
| 48 | + } |
| 49 | + </style> |
| 50 | + </div> |
| 51 | + |
| 52 | + {% if config.theme.palette %} |
| 53 | + {% if not config.theme.palette is mapping %} |
| 54 | + {% include "partials/palette.html" %} |
| 55 | + {% endif %} |
| 56 | + {% endif %} |
| 57 | + {% if config.extra.alternate %} |
| 58 | + {% include "partials/alternate.html" %} |
| 59 | + {% endif %} |
| 60 | + {% if "material/search" in config.plugins %} |
| 61 | + <label class="md-header__button md-icon" for="__search"> |
| 62 | + {% set icon = config.theme.icon.search or "material/magnify" %} |
| 63 | + {% include ".icons/" ~ icon ~ ".svg" %} |
| 64 | + </label> |
| 65 | + {% include "partials/search.html" %} |
| 66 | + {% endif %} |
| 67 | + {% if config.repo_url %} |
| 68 | + <div class="md-header__source"> |
| 69 | + {% include "partials/source.html" %} |
| 70 | + </div> |
| 71 | + {% endif %} |
| 72 | + </nav> |
| 73 | + {% if "navigation.tabs.sticky" in features %} |
| 74 | + {% if "navigation.tabs" in features %} |
| 75 | + {% include "partials/tabs.html" %} |
| 76 | + {% endif %} |
| 77 | + {% endif %} |
| 78 | +</header> |
0 commit comments