footer.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!--
  2. ~ Copyright (C) 2018 Drake, Inc.
  3. ~
  4. ~ Licensed under the Apache License, Version 2.0 (the "License");
  5. ~ you may not use this file except in compliance with the License.
  6. ~ You may obtain a copy of the License at
  7. ~
  8. ~ http://www.apache.org/licenses/LICENSE-2.0
  9. ~
  10. ~ Unless required by applicable law or agreed to in writing, software
  11. ~ distributed under the License is distributed on an "AS IS" BASIS,
  12. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. ~ See the License for the specific language governing permissions and
  14. ~ limitations under the License.
  15. -->
  16. {% import "partials/language.html" as lang with context %}
  17. <!-- Application footer -->
  18. <footer class="md-footer">
  19. <!-- Link to previous and/or next page -->
  20. {% if page.previous_page or page.next_page %}
  21. <div class="md-footer-nav">
  22. <nav
  23. class="md-footer-nav__inner md-grid"
  24. aria-label="{{ lang.t('footer.title') }}"
  25. >
  26. <!-- Link to previous page -->
  27. {% if page.previous_page %}
  28. <a
  29. href="{{ page.previous_page.url | url }}"
  30. title="{{ page.previous_page.title | striptags }}"
  31. class="md-footer-nav__link md-footer-nav__link--prev"
  32. rel="prev"
  33. >
  34. <div class="md-footer-nav__button md-icon">
  35. {% include ".icons/material/arrow-left.svg" %}
  36. </div>
  37. <div class="md-footer-nav__title">
  38. <div class="md-ellipsis">
  39. <span class="md-footer-nav__direction">
  40. {{ lang.t("footer.previous") }}
  41. </span>
  42. {{ page.previous_page.title }}
  43. </div>
  44. </div>
  45. </a>
  46. {% endif %}
  47. <!-- Link to next page -->
  48. {% if page.next_page %}
  49. <a
  50. href="{{ page.next_page.url | url }}"
  51. title="{{ page.next_page.title | striptags }}"
  52. class="md-footer-nav__link md-footer-nav__link--next"
  53. rel="next"
  54. >
  55. <div class="md-footer-nav__title">
  56. <div class="md-ellipsis">
  57. <span class="md-footer-nav__direction">
  58. {{ lang.t("footer.next") }}
  59. </span>
  60. {{ page.next_page.title }}
  61. </div>
  62. </div>
  63. <div class="md-footer-nav__button md-icon">
  64. {% include ".icons/material/arrow-right.svg" %}
  65. </div>
  66. </a>
  67. {% endif %}
  68. </nav>
  69. </div>
  70. {% endif %}
  71. <!-- Further information -->
  72. <div class="md-footer-meta md-typeset">
  73. <div class="md-footer-meta__inner md-grid">
  74. <!-- Copyright and theme information -->
  75. <div class="md-footer-copyright">
  76. {% if config.copyright %}
  77. <div class="md-footer-copyright__highlight">
  78. {{ config.copyright }}
  79. </div>
  80. {% endif %}
  81. </div>
  82. <!-- Social links -->
  83. {% include "partials/social.html" %}
  84. </div>
  85. </div>
  86. </footer>