Merge pull request #108 from jiewenhuang/dev

update:v1.1.3
This commit is contained in:
Jevon 2023-09-30 22:40:59 +08:00 committed by GitHub
commit 117d8b05ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 54 additions and 48 deletions

View File

@ -1,6 +1,6 @@
{
"name": "halo-theme-joe3.0",
"version": "1.1.2",
"version": "1.1.3",
"description": "Theme of Halo2",
"devDependencies": {
"uglify-js": "^3.17.4"

View File

@ -2383,31 +2383,34 @@ spec:
label: 外部CSS链接
value: ""
help: "填入外部CSS链接无需link标签将插入head标签尾部"
- $formkit: textarea
- $formkit: code
name: custom_css
label: 自定义CSS
value: ""
help: "填入CSS代码无需style标签将插入head标签尾部"
language: css
- $formkit: text
name: custom_external_js_head
label: 外部JS链接head
value: ""
help: "填入外部JS链接需要script标签可按情况指定async和defer属性将插入head标签尾部"
- $formkit: textarea
- $formkit: code
name: custom_js_head
label: 自定义JShead
value: ""
help: "填入JS代码无需script标签将插入head标签尾部"
language: javascript
- $formkit: text
name: custom_external_js_body
label: 外部JS链接body
value: ""
help: "填入外部JS链接无需script标签将插入body标签尾部可用于添加插件等"
- $formkit: textarea
- $formkit: code
name: custom_js_body
label: 自定义JSbody
value: ""
help: "填入JS代码无需script标签将插入body标签尾部"
language: javascript
- $formkit: radio
name: show_loaded_time
label: 控制台输出页面加载耗时

View File

@ -29,10 +29,10 @@
<div class="joe_archives__wrapper animated fadeIn">
<div class="joe_archives-title">
<th:block th:if="${theme.config.archives.archives_list_type == 'timeline'}">
<i class="joe-font joe-icon-timeline"></i>时间轴<em>[[${'('+theme.config.archives.archives_timeline_metric == 'month' ? '月':'年'+''}]]</em>
<i class="joe-font joe-icon-timeline"></i>时间轴<em>[[${theme.config.archives.archives_timeline_metric == 'month' ? '月':'年'}]]</em>
</th:block>
<th:block th:if="${theme.config.archives.archives_list_type == 'list'}">
<i class="joe-font joe-icon-rili"></i>列表
<i class="jiewen joe-icon-riqi"></i>列表
</th:block>
</div>
<th:block th:if="${theme.config.archives.archives_list_type =='list'}">

View File

@ -157,7 +157,7 @@
<th:block th:if="${theme.config.blogger.enable_strips}">
<canvas id="canvas-strips" width="300" height="340"></canvas>
<script th:src="@{/assets/effect/bg/strips.js}"></script>
<script th:inline="javascript">
<script th:inline="javascript" th:if="${theme.config.blogger.overview_type != 'A'}">
const url = [[${theme.config.basic.waline_serverURL+'/api/comment?type=count'}]];
fetch(url).then(async (response) => {
const data = await response.json();

View File

@ -28,10 +28,15 @@
<script id="theme-config-getter" type="text/javascript">
// if (ThemeConfig.mode === "development") {
// console.log("Joe2.0主题配置:", ThemeConfig);
// console.log("资源根路径:", ThemeConfig.BASE_RES_URL);
// }
if (window.location.hostname === 'localhost'||window.location.hostname === '127.0.0.1') {
ThemeConfig['mode'] = "development"
}
console.log(ThemeConfig.mode)
if (ThemeConfig.mode === "development") {
console.log("Joe3主题配置", ThemeConfig);
console.log("资源根路径:", ThemeConfig.BASE_RES_URL);
}
// 读取主题模式
var initThemeMode = function() {
try {

View File

@ -67,7 +67,7 @@
<link rel="preload stylesheet" as="style" th:href="${source_link+'/assets/css/min/journals.min.css?v='+theme.spec.version}">
</th:block>
<th:block th:if="${htmlType == 'archives'}">
<link rel="preload stylesheet" as="style" th:href="¥{source_link+/assets/css/min/archives.min.css?v=+theme.spec.version}">
<link rel="preload stylesheet" as="style" th:href="${source_link+'/assets/css/min/archives.min.css?v='+theme.spec.version}">
</th:block>
<th:block th:if="${htmlType == 'photos'}">
<link rel="stylesheet" th:href="${source_link+'/assets/lib/justifiedGallery/justifiedGallery.min.css'}">

View File

@ -20,7 +20,6 @@
metas_enable_fold_long_code: /*[[${#annotations.getOrDefault(post, 'enable_fold_long_code', 'true')}]]*/ true
};
PageAttrs.metas_toc_depth = parseInt(PageAttrs.metas_toc_depth);
console.log(PageAttrs.metas_toc_depth)
</script>
</th:block>
</html>

View File

@ -12,46 +12,45 @@
<div class="joe_photos__type">
<div class="joe_photos__type-title">
<i class="joe-font joe-icon-tupian"></i>&nbsp;[[${theme.config.photos.photos_title?:'我的图库'}]]
</div>
<nav class="joe_photos__filter">
<ul>
<li data-sjslink="all">
<a >全部</a>
</li>
<th:block th:each="group : ${groups}">
<li th:data-sjslink="${group.metadata.name}">
<a >[[${group.spec.displayName}]]</a>
</li>
</th:block>
</div>
<nav class="joe_photos__filter">
<ul>
<li data-sjslink="all">
<a >全部</a>
</li>
<th:block th:each="group : ${groups}">
<li th:data-sjslink="${group.metadata.name}">
<a >[[${group.spec.displayName}]]</a>
</li>
</th:block>
</ul>
</nav>
</div>
<div class="wrapper">
<div id="sortable" class="sjs-default">
<div th:data-sjsel="${photo.spec.groupName}" th:each="photo : ${photoFinder.listAll()}">
<div class="card" >
<a class="item animated wow jg-entry" th:href="${photo.spec.url}" data-fancybox="gallery">
<img class="card__picture" loading="lazy" th:data-src="${photo.spec.url}" th:src="@{/assets/img/lazyload.gif}" th:alt="${photo.spec.displayName}">
</a>
</div>
</div>
</div>
</div>
</ul>
</nav>
</div>
<div class="wrapper">
<div id="sortable" class="sjs-default">
<div th:data-sjsel="${photo.spec.groupName}" th:each="photo : ${photoFinder.listAll()}">
<div class="card" >
<a class="item animated wow jg-entry" th:href="${photo.spec.url}" data-fancybox="gallery">
<img class="card__picture" loading="lazy" th:data-src="${photo.spec.url}" th:src="@{/assets/img/lazyload.gif}" th:alt="${photo.spec.displayName}">
</a>
<!-- <div class="placeholder" style="width: 200px;height: 120px;background: #eee;"></div>-->
</div>
</div>
</div>
</div>
</div>
<th:block th:if="${theme.config.aside.enable_photos_aside}">
<th:block th:replace="~{modules/common/aside :: aside}" />
</th:block>
</div>
<th:block th:replace="~{modules/common/actions :: actions}" />
<th:block th:replace="~{modules/common/footer :: footer}" />
</div>
<th:block th:replace="~{modules/common/actions :: actions}" />
<th:block th:replace="~{modules/common/footer :: footer}" />
</div>
<th:block th:replace="~{modules/macro/tail :: tail}" />
</body>

View File

@ -13,7 +13,7 @@ spec:
repo: "https://github.com/jiewenhuang/halo-theme-joe3.0"
settingName: "theme-Joe-setting"
configMapName: "theme-Joe-configMap"
version: "1.1.2"
version: "1.1.3"
require: ">=2.8.0"
customTemplates:
page: