footer.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <!-- Footer -->
  18. <footer class="md-footer">
  19. <!-- Link to previous and/or next page -->
  20. {% if page.previous_page or page.next_page %}
  21. <nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer.title') }}">
  22. <!-- Link to previous page -->
  23. {% if page.previous_page %}
  24. <a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev" rel="prev">
  25. <div class="md-footer__button md-icon">
  26. {% include ".icons/material/arrow-left.svg" %}
  27. </div>
  28. <div class="md-footer__title">
  29. <div class="md-ellipsis">
  30. <span class="md-footer__direction">
  31. {{ lang.t("footer.previous") }}
  32. </span>
  33. {{ page.previous_page.title }}
  34. </div>
  35. </div>
  36. </a>
  37. {% endif %}
  38. <!-- Link to next page -->
  39. {% if page.next_page %}
  40. <a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next" rel="next">
  41. <div class="md-footer__title">
  42. <div class="md-ellipsis">
  43. <span class="md-footer__direction">
  44. {{ lang.t("footer.next") }}
  45. </span>
  46. {{ page.next_page.title }}
  47. </div>
  48. </div>
  49. <div class="md-footer__button md-icon">
  50. {% include ".icons/material/arrow-right.svg" %}
  51. </div>
  52. </a>
  53. {% endif %}
  54. </nav>
  55. {% endif %}
  56. <!-- Further information -->
  57. <div class="md-footer-meta md-typeset">
  58. <div class="md-footer-meta__inner md-grid">
  59. <!-- Copyright and theme information -->
  60. <div class="md-footer-copyright">
  61. {% if config.copyright %}
  62. <a href="https://github.com/liangjingkanji" target="_blank" rel="noopener">
  63. <div class="md-footer-copyright__highlight">
  64. {{ config.copyright }}
  65. </div>
  66. </a>
  67. {% endif %}
  68. {{ extracopyright }}
  69. </div>
  70. <!-- Social links -->
  71. {% include "partials/social.html" %}
  72. </div>
  73. </div>
  74. </footer>