1.2.5原版
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
<th:block th:fragment="head">
|
||||
|
||||
<th:block th:replace="~{'modules/variables/msg'}"/>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
||||
<title th:text="${site_title}"></title>
|
||||
<link rel="shortcut icon" th:href="@{${theme.config.base_set.favicon}}" title="Favicon">
|
||||
<th:block th:replace="~{modules/variables/cst-script-parameter}"/>
|
||||
<meta name="robots" content="max-image-preview:large">
|
||||
|
||||
<th:block th:if="${not #strings.isEmpty(theme.config.custom.head_html)}"
|
||||
th:utext="${theme.config.custom.head_html}"> </th:block>
|
||||
|
||||
<meta property="og:title" th:content="${site_title}">
|
||||
<meta property="og:site_name" th:content="${site.title}">
|
||||
<meta property="og:type" content="website">
|
||||
<link rel="stylesheet" id="wp-block-library-css" th:href="@{/assets/css/style.min.css?v={version}(version=${theme.spec.version})}" media="all">
|
||||
<style id="classic-theme-styles-inline-css">
|
||||
/*! This file is auto-generated */
|
||||
.wp-block-button__link {
|
||||
color: #fff;
|
||||
background-color: #32373c;
|
||||
border-radius: 9999px;
|
||||
box-shadow: none;
|
||||
text-decoration: none;
|
||||
padding: calc(.667em + 2px) calc(1.333em + 2px);
|
||||
font-size: 1.125em
|
||||
}
|
||||
|
||||
.wp-block-file__button {
|
||||
background: #32373c;
|
||||
color: #fff;
|
||||
text-decoration: none
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" id="pix-style-css" th:href="@{/assets/css/style.css?v={version}(version=${theme.spec.version})}" media="all">
|
||||
<link rel="stylesheet" id="fancybox.css-css" th:href="@{/assets/libs/fancybox/jquery.fancybox.min.css}" media="all">
|
||||
<link rel="stylesheet" id="nprogress.css-css" th:href="@{/assets/libs/nprogress/nprogress.css}" media="all">
|
||||
<link rel="stylesheet" id="iconfont-css" th:href="@{/assets/libs/fonts/remixicon.css}" media="all">
|
||||
<link rel="stylesheet" id="uikit.css-css" th:href="@{/assets/libs/uikit/uikit.min.css}" media="all">
|
||||
<link rel="stylesheet" id="main.css-css" th:href="@{/assets/css/main.css?v={version}(version=${theme.spec.version})}" media="all">
|
||||
<link th:if="${theme.config.style.theme_set != 'green-normal' && theme.config.style.theme_set != 'dark-theme'}"
|
||||
rel="stylesheet" id="theme.color-css" th:href="@{/assets/css/{theme_set}.css?v={version}(version=${theme.spec.version},theme_set=${theme.config.style.theme_set})}" media="all">
|
||||
<link rel="stylesheet" id="dark-css" th:href="@{/assets/css/dark.css?v={version}(version=${theme.spec.version})}" media="all">
|
||||
<link rel="stylesheet" id="mobile-css" th:href="@{/assets/css/mobile.css?v={version}(version=${theme.spec.version})}" media="all">
|
||||
<link rel="stylesheet" id="album-css" th:href="@{/assets/css/album.css?v={version}(version=${theme.spec.version})}" media="all">
|
||||
<script th:src="@{/assets/libs/imgstatus/imgStatus.min.js}" id="imgstatus-js"></script>
|
||||
<script th:src="@{/assets/libs/waterfall/waterfall.min.js}" id="waterfall-js"></script>
|
||||
<script th:if="${pluginFinder.available('PluginPrismJS')}" src="/plugins/PluginPrismJS/assets/static/highlight.js/highlight.min.js"></script>
|
||||
<link th:if="${pluginFinder.available('plugin-douban')}" rel="stylesheet" id="wpd-css-css" th:href="@{/plugins/plugin-douban/assets/static/db.min.css}" type="text/css"
|
||||
media="screen">
|
||||
<style type="text/css"
|
||||
th:if="${not #strings.isEmpty(theme.config.custom.code_css)}"
|
||||
th:utext="${theme.config.custom.code_css}" ></style>
|
||||
<style type="text/css">
|
||||
:root {
|
||||
--toc-color: [(${theme.config.post.tocColor})];
|
||||
}
|
||||
</style>
|
||||
<style type="text/css" th:if="${!theme.config.post.toc.mobile_open}">
|
||||
@media screen and (max-width: 768px) {
|
||||
.listree-box {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<!-- 自定义css -->
|
||||
<style type="text/css" th:if="${not #strings.isEmpty(theme.config.base_set.custom_fonts)}">
|
||||
@font-face {
|
||||
font-style: normal;
|
||||
font-family: "HarmonyOS_M";
|
||||
src: url("[(${theme.config.base_set.custom_fonts})]") format("truetype");
|
||||
font-display: swap;
|
||||
}
|
||||
</style>
|
||||
|
||||
<th:block th:replace="~{'modules/variables/moments-img-style'}"></th:block>
|
||||
|
||||
<script>
|
||||
(win => {
|
||||
win.getCookie = function(name) {
|
||||
var cookieArr = document.cookie.split(';');
|
||||
for (var i = 0; i < cookieArr.length; i++) {
|
||||
var cookiePair = cookieArr[i].split('=');
|
||||
var cookieName = cookiePair[0].trim();
|
||||
if (cookieName === name) {
|
||||
return decodeURIComponent(cookiePair[1]);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
win.darkmode = function () {
|
||||
$darkmode = false;
|
||||
const dark = getCookie("dark")
|
||||
if (dark) {
|
||||
$darkmode = (dark == 'dark') ? true : false;
|
||||
} else if (Theme.theme_set == 'dark-theme') {
|
||||
$darkmode = true;
|
||||
}
|
||||
return $darkmode;
|
||||
}
|
||||
|
||||
if (darkmode()) {
|
||||
document.documentElement.classList.add('dark')
|
||||
}
|
||||
})(window)
|
||||
</script>
|
||||
</th:block>
|
||||
Reference in New Issue
Block a user