| 1 |
<!-- |
| 2 |
Copyright (c) 2016-2024 Martin Donath <[email protected]> |
| 3 |
|
| 4 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 |
of this software and associated documentation files (the "Software"), to |
| 6 |
deal in the Software without restriction, including without limitation the |
| 7 |
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 8 |
sell copies of the Software, and to permit persons to whom the Software is |
| 9 |
furnished to do so, subject to the following conditions: |
| 10 |
|
| 11 |
The above copyright notice and this permission notice shall be included in |
| 12 |
all copies or substantial portions of the Software. |
| 13 |
|
| 14 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE |
| 17 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 19 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
| 20 |
IN THE SOFTWARE. |
| 21 |
--> |
| 22 |
|
| 23 |
<!-- Footer --> |
| 24 |
<footer class="md-footer"> |
| 25 |
|
| 26 |
<!-- Link to previous and/or next page --> |
| 27 |
{% if "navigation.footer" in features %} |
| 28 |
{% if page.previous_page or page.next_page %} |
| 29 |
{% if page.meta and page.meta.hide %} |
| 30 |
{% set hidden = "hidden" if "footer" in page.meta.hide %} |
| 31 |
{% endif %} |
| 32 |
<nav |
| 33 |
class="md-footer__inner md-grid" |
| 34 |
aria-label="{{ lang.t('footer') }}" |
| 35 |
{{ hidden }} |
| 36 |
> |
| 37 |
|
| 38 |
<!-- Link to previous page --> |
| 39 |
{% if page.previous_page %} |
| 40 |
{% set direction = lang.t("footer.previous") %} |
| 41 |
<a |
| 42 |
href="{{ page.previous_page.url | url }}" |
| 43 |
class="md-footer__link md-footer__link--prev" |
| 44 |
aria-label="{{ direction }}: {{ page.previous_page.title | e }}" |
| 45 |
> |
| 46 |
<div class="md-footer__button md-icon"> |
| 47 |
{% set icon = config.theme.icon.previous or "material/arrow-left" %} |
| 48 |
{% include ".icons/" ~ icon ~ ".svg" %} |
| 49 |
</div> |
| 50 |
<div class="md-footer__title"> |
| 51 |
<span class="md-footer__direction"> |
| 52 |
{{ direction }} |
| 53 |
</span> |
| 54 |
<div class="md-ellipsis"> |
| 55 |
{{ page.previous_page.title }} |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
</a> |
| 59 |
{% endif %} |
| 60 |
|
| 61 |
<!-- Link to next page --> |
| 62 |
{% if page.next_page %} |
| 63 |
{% set direction = lang.t("footer.next") %} |
| 64 |
<a |
| 65 |
href="{{ page.next_page.url | url }}" |
| 66 |
class="md-footer__link md-footer__link--next" |
| 67 |
aria-label="{{ direction }}: {{ page.next_page.title | e }}" |
| 68 |
> |
| 69 |
<div class="md-footer__title"> |
| 70 |
<span class="md-footer__direction"> |
| 71 |
{{ direction }} |
| 72 |
</span> |
| 73 |
<div class="md-ellipsis"> |
| 74 |
{{ page.next_page.title }} |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
<div class="md-footer__button md-icon"> |
| 78 |
{% set icon = config.theme.icon.next or "material/arrow-right" %} |
| 79 |
{% include ".icons/" ~ icon ~ ".svg" %} |
| 80 |
</div> |
| 81 |
</a> |
| 82 |
{% endif %} |
| 83 |
</nav> |
| 84 |
{% endif %} |
| 85 |
{% endif %} |
| 86 |
|
| 87 |
<!-- Further information --> |
| 88 |
<div class="md-footer-meta md-typeset"> |
| 89 |
<div class="md-footer-meta__inner md-grid"> |
| 90 |
{% include "partials/copyright.html" %} |
| 91 |
<!-- Social links --> |
| 92 |
{% if config.extra.social %} |
| 93 |
{% include "partials/social.html" %} |
| 94 |
{% endif %} |
| 95 |
</div> |
| 96 |
</div> |
| 97 |
</footer> |