footer.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!--
  2. Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to
  5. deal in the Software without restriction, including without limitation the
  6. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  7. sell copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  16. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  17. IN THE SOFTWARE.
  18. -->
  19. <!-- Footer -->
  20. <footer class="md-footer">
  21. <!-- Link to previous and/or next page -->
  22. {% if "navigation.footer" in features %}
  23. {% if page.previous_page or page.next_page %}
  24. {% if page.meta and page.meta.hide %}
  25. {% set hidden = "hidden" if "footer" in page.meta.hide %}
  26. {% endif %}
  27. <nav
  28. class="md-footer__inner md-grid"
  29. aria-label="{{ lang.t('footer') }}"
  30. {{ hidden }}
  31. >
  32. <!-- Link to previous page -->
  33. {% if page.previous_page %}
  34. {% set direction = lang.t("footer.previous") %}
  35. <a
  36. href="{{ page.previous_page.url | url }}"
  37. class="md-footer__link md-footer__link--prev"
  38. aria-label="{{ direction }}: {{ page.previous_page.title | e }}"
  39. >
  40. <div class="md-footer__button md-icon">
  41. {% set icon = config.theme.icon.previous or "material/arrow-left" %}
  42. {% include ".icons/" ~ icon ~ ".svg" %}
  43. </div>
  44. <div class="md-footer__title">
  45. <span class="md-footer__direction">
  46. {{ direction }}
  47. </span>
  48. <div class="md-ellipsis">
  49. {{ page.previous_page.title }}
  50. </div>
  51. </div>
  52. </a>
  53. {% endif %}
  54. <!-- Link to next page -->
  55. {% if page.next_page %}
  56. {% set direction = lang.t("footer.next") %}
  57. <a
  58. href="{{ page.next_page.url | url }}"
  59. class="md-footer__link md-footer__link--next"
  60. aria-label="{{ direction }}: {{ page.next_page.title | e }}"
  61. >
  62. <div class="md-footer__title">
  63. <span class="md-footer__direction">
  64. {{ direction }}
  65. </span>
  66. <div class="md-ellipsis">
  67. {{ page.next_page.title }}
  68. </div>
  69. </div>
  70. <div class="md-footer__button md-icon">
  71. {% set icon = config.theme.icon.next or "material/arrow-right" %}
  72. {% include ".icons/" ~ icon ~ ".svg" %}
  73. </div>
  74. </a>
  75. {% endif %}
  76. </nav>
  77. {% endif %}
  78. {% endif %}
  79. <!-- Further information -->
  80. <div class="md-footer-meta md-typeset">
  81. <div class="md-footer-meta__inner md-grid">
  82. {% include "partials/copyright.html" %}
  83. <!-- Social links -->
  84. <font color="#B9B9B9">
  85. <div class="footer-visit-count" style="display: flex; justify-content: center; align-items: center;">
  86. 本站访问量:<script async src="//finicounter.eu.org/finicounter.js"></script>
  87. <span id="finicount_views"></span> &nbsp;|&nbsp;
  88. <footer>
  89. <a href="https://icp.gov.moe/?keyword=20230640" target="_blank">萌ICP备XXXXXXXXXX号</a>
  90. </footer>
  91. </div>
  92. </font>
  93. <style>
  94. .footer-visit-count {
  95. height: fit-content;
  96. min-height: 80px; /* 根据实际情况调整此高度 */
  97. }
  98. </style>
  99. <!-- 在这里插入页脚 -->
  100. {% if config.extra.social %}
  101. {% include "partials/social.html" %}
  102. {% endif %}
  103. </div>
  104. </div>
  105. </footer>