首页底部重构

This commit is contained in:
liuzhihang 2023-05-31 00:14:03 +08:00
parent 94d8029ebe
commit 1478caec3d
2 changed files with 38 additions and 41 deletions

View File

@ -26,8 +26,8 @@
</div> </div>
<div th:replace="~{modules/aside :: aside(${theme.config.sidebar.widgets})}"></div> <div th:replace="~{modules/aside :: aside(${theme.config.sidebar.widgets})}"></div>
</main> </main>
<!--&lt;!&ndash; 底部 &ndash;&gt;--> <!-- 底部 -->
<!--<footer th:replace="~{modules/footer :: footer}"></footer>--> <footer th:replace="~{modules/footer :: footer}"></footer>
</div> </div>
</th:block> </th:block>

View File

@ -4,6 +4,8 @@
<footer id="footer" th:fragment="footer"> <footer id="footer" th:fragment="footer">
<!-- 社交链接,需要填入 href class title --> <!-- 社交链接,需要填入 href class title -->
<!-- todo 在 中间位置要插入 <img class="footer_mini_logo" onclick="acrylic.toTop()"
src="/img/avatar.webp" title="返回顶部"> -->
<div id="footer_deal" <div id="footer_deal"
th:if="${not #lists.isEmpty(theme.config.footer.socialMedia)}" th:if="${not #lists.isEmpty(theme.config.footer.socialMedia)}"
th:with="socialMedias = ${theme.config.footer.socialMedia}"> th:with="socialMedias = ${theme.config.footer.socialMedia}">
@ -32,59 +34,54 @@
</th:block> </th:block>
<!-- 底部 banner --> <!-- 底部 banner -->
<div id="footer-section">
<div class="footer-section-links">
<div class="footer-section-left">
<div id="footer-section-tips">
<div id="footer-banner">
<div class="footer-banner-links">
<div class="footer-banner-left">
<div id="footer-banner-tips">
<div class="copyright" th:if="${not #strings.isEmpty(theme.config.basics.siteStartTime)}"> <div class="copyright" th:if="${not #strings.isEmpty(theme.config.basics.siteStartTime)}">
©[[${#strings.arraySplit(theme.config.basics.siteStartTime, '-')[0]}]] - [[${#dates.format(new java.util.Date(), 'yyyy')}]] [[${site.title}]]. ©[[${#strings.arraySplit(theme.config.basics.siteStartTime, '-')[0]}]] - [[${#dates.format(new java.util.Date(),
'yyyy')}]] [[${site.title}]].
<a class="footer-section-link" href="https://halo.run" rel="external nofollow">Power by Halo</a>
<a class="footer-section-link" href="https://github.com/liuzhihang/halo-theme-hao"
rel="external nofollow" target="_blank"> Theme By Hao</a>
</div> </div>
<div class="copyright" th:if="${#strings.isEmpty(theme.config.basics.siteStartTime)}"> <div class="copyright" th:if="${#strings.isEmpty(theme.config.basics.siteStartTime)}">
©[[${#dates.format(new java.util.Date(), 'yyyy')}]] [[${site.title}]]. ©[[${#dates.format(new java.util.Date(), 'yyyy')}]] [[${site.title}]].
<a class="footer-section-link" href="https://halo.run" rel="external nofollow">Power by Halo</a>
<a class="footer-section-link" href="https://github.com/liuzhihang/halo-theme-hao"
rel="external nofollow" target="_blank"> Theme By Hao</a>
</div> </div>
</div> </div>
<br> </div>
<div> <div class="footer-section-right">
<a class="footer-section-link" href="/rss/">订阅</a>
&nbsp; &nbsp;
Powered by <a class="hover:underline" href="https://halo.run" target="_blank">Halo</a>. <a class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">
</div> [[${theme.config.basics.icp}]]
</div>
<div class="footer-banner-right">
<!-- 订阅 需要 RSS 插件支持 -->
<a class="footer-banner-link" href="/sitemap.xml"
th:if="${pluginFinder.available('PluginSitemap')}">订阅</a>
<a class="footer-banner-link" href="https://github.com/liuzhihang/halo-theme-hao">主题</a>
<a class="footer-banner-link" href="/about">关于</a>
<a class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index"
rel="noopener external nofollow noreferrer noopener" target="_blank">[[${theme.config.basics.icp}]]
</a> </a>
<a class="footer-banner-link" th:href="@{'http://www.beian.gov.cn/portal/registerSystemInfo'}" &nbsp;&nbsp;
rel="noopener external nofollow noreferrer noopener" target="_blank">[[${theme.config.basics.gongan}]] <a class="footer-banner-link" target="_blank"
th:href="@{'http://www.beian.gov.cn/portal/registerSystemInfo'}"> [[${theme.config.basics.gongan}]]
</a> </a>
<a class="footer-banner-link cc" &nbsp;&nbsp;
th:href="${theme.config.basics.copyrightAgreement}" <a class="footer-section-link cc" href="https://creativecommons.org/licenses/by/4.0/" target="_blank" title="cc协议">
th:if="${not #strings.isEmpty(theme.config.basics.copyrightAgreement)}" <i class="fa-solid fa-closed-captioning"></i>
title="cc协议">
<i class="iconfont icon-cc"></i>
<i class="iconfont icon-by"></i>
<i class="iconfont icon-nc"></i>
<i class="iconfont icon-nd"></i>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<!-- 暂时不需要弹窗 --> <!-- 暂时不需要弹窗 -->
<div id="introduction-window"> <!--<div id="introduction-window">-->
<div class="introduction-window-title" th:text="${theme.config.snackbar.introductionTitle}"></div> <!-- <div class="introduction-window-title" th:text="${theme.config.snackbar.introductionTitle}"></div>-->
<div class="introduction-window-content"> <!-- <div class="introduction-window-content">-->
<span class="introduction-tip" th:text="${theme.config.snackbar.introductionTip}"></span> <!-- <span class="introduction-tip" th:text="${theme.config.snackbar.introductionTip}"></span>-->
<a class="introduction-link" target="_blank" title="点击查看" <!-- <a class="introduction-link" target="_blank" title="点击查看"-->
th:href="@{${theme.config.snackbar.introductionUrl}}"> <!-- th:href="@{${theme.config.snackbar.introductionUrl}}">-->
<i class="iconfont icon-arrow-circle-right"></i> <!-- <i class="iconfont icon-arrow-circle-right"></i>-->
</a> <!-- </a>-->
</div> <!-- </div>-->
</div> <!--</div>-->
<div id="quit-box" onclick="RemoveRewardMask()"></div> <!--<div id="quit-box" onclick="RemoveRewardMask()"></div>-->
</footer> </footer>
</html> </html>