update:优化部分细节

This commit is contained in:
jiewenhuang 2023-09-22 00:20:06 +08:00
parent 1bf4abf32a
commit eaae19e44c
3 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,7 @@
<th:block th:replace="~{modules/macro/banner :: banner}" />
</th:block>
<th:block th:if="${theme.config.home.enable_hot_category} and (${not #lists.isEmpty(theme.config.home.category_data)} or ${not #lists.isEmpty(theme.config.home.custom_data)})">
<th:block th:if="${theme.config.home.enable_hot_category} and (${not #lists.isEmpty(theme.config.home.category_data) and theme.config.home.hot_category_source == 'category'} or ${not #lists.isEmpty(theme.config.home.custom_data) and theme.config.home.hot_category_source == 'custom'})">
<th:block th:replace="~{modules/macro/hot_category :: hot_category}" />
</th:block>

View File

@ -30,7 +30,7 @@
<script th:src="@{/assets/lib/meting/meting.min.js}"></script>
</th:block>
</th:block>
<script th:src="@{/assets/js/custom.js}"></script>
<script th:src="@{/assets/js/min/custom.min.js?v={version}(version=${theme.spec.version})}"></script>
<th:block th:if="${htmlType == 'post'} or ${htmlType == 'journals'} or ${htmlType == 'sheet'}">
<script th:src="@{/assets/lib/clipboard/clipboard.min.js}"></script>
</th:block>
@ -73,6 +73,8 @@
<th:block th:if="${theme.config.beauty.enable_big_banner}">
<script th:src="@{/assets/js/min/beauty.min.js}"></script>
</th:block>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<!-- ===== 引入页面级js end ===== -->
<!-- ===== 引入脚本 start ===== -->
@ -105,7 +107,7 @@
});
</script>
<!-- 大图配置-->
<script th:inline="javascript">
<script th:inline="javascript" th:if="${theme.config.beauty.enable_big_banner}">
// 以下配置参数均为默认值
new EvanBigBanner({
followMode: false, // 跟随模式

View File

@ -75,6 +75,7 @@
enable_comment_journal : /*[[${theme.config.journals.enable_comment_journal}]]*/ true,
journal_block_height : /*[[${theme.config.journals.journal_block_height}]]*/ 300,
long_code_height : /*[[${theme.config.code_block.long_code_height}]]*/ 800,
lazyload_avatar : /*[[${theme.config.blogger.lazyload_avatar}]]*/ '',
photos_layout : 'waterfall',
blog_url : /*[[${#strings.substring(site.url, #strings.length(site.url) - 1)== '/'}? ${#strings.substring(site.url,0,#strings.length(site.url) - 1)}:${site.url}]]*/ '',
blog_title : /*[[${site.title}]]*/ '',