mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
commit
b2dc9e99dd
@ -1154,7 +1154,7 @@ spec:
|
|||||||
label: "搜索页面-无搜索结果提示语"
|
label: "搜索页面-无搜索结果提示语"
|
||||||
language: html
|
language: html
|
||||||
value: '没有搜索结果'
|
value: '没有搜索结果'
|
||||||
height: 160px
|
height: 240px
|
||||||
help: '搜索页面-无搜索结果提示语,支持 HTML 格式。'
|
help: '搜索页面-无搜索结果提示语,支持 HTML 格式。'
|
||||||
- group: enhance
|
- group: enhance
|
||||||
label: '增强功能'
|
label: '增强功能'
|
||||||
|
@ -36,6 +36,15 @@ lit-toast-container, halo-contact-form-toast-container {
|
|||||||
filter: grayscale(1) !important;
|
filter: grayscale(1) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.qmsg.qmsg-wrapper {
|
||||||
|
color: #333 !important;
|
||||||
|
top: 60px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qmsg .qmsg-content {
|
||||||
|
background: var(--light-z) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-above {
|
.navbar-above {
|
||||||
|
|
||||||
&.animation {
|
&.animation {
|
||||||
@ -5244,7 +5253,7 @@ button.swiper-pagination-bullet {
|
|||||||
|
|
||||||
i {
|
i {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.2rem;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
templates/assets/css/style.min.css
vendored
2
templates/assets/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
@ -75,6 +75,7 @@
|
|||||||
DreamConfig["gray_mode"] = [[${theme.config.enhance.gray_mode_group.enable_gray_mode}]];
|
DreamConfig["gray_mode"] = [[${theme.config.enhance.gray_mode_group.enable_gray_mode}]];
|
||||||
DreamConfig["gray_mode_start_time"] = [[${theme.config.enhance.gray_mode_group.gray_mode_start_time}]];
|
DreamConfig["gray_mode_start_time"] = [[${theme.config.enhance.gray_mode_group.gray_mode_start_time}]];
|
||||||
DreamConfig["gray_mode_end_time"] = [[${theme.config.enhance.gray_mode_group.gray_mode_end_time}]];
|
DreamConfig["gray_mode_end_time"] = [[${theme.config.enhance.gray_mode_group.gray_mode_end_time}]];
|
||||||
|
DreamConfig["pjax_state"] = [[${theme.config.enhance.enable_pjax}]];
|
||||||
/** 配置分享方式 */
|
/** 配置分享方式 */
|
||||||
let post_share = []
|
let post_share = []
|
||||||
for (let share of [[${theme.config.post.custom_post_share}]]) {
|
for (let share of [[${theme.config.post.custom_post_share}]]) {
|
||||||
|
@ -9,15 +9,36 @@
|
|||||||
<div>[[${#strings.replace(title, ' - ' + site.title, '')}]]</div>
|
<div>[[${#strings.replace(title, ' - ' + site.title, '')}]]</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
<form class="search-form-inner" method="get" action="/search" role="search" data-pjax>
|
<script th:inline="javascript">
|
||||||
|
$(function () {
|
||||||
|
var searchForm = document.getElementById('halo-search-form')
|
||||||
|
searchForm.addEventListener('submit', function (event) {
|
||||||
|
var searchInput = document.getElementById('halo-search-form-text-input')
|
||||||
|
var query = searchInput.value.trim()
|
||||||
|
if (!query || query.startsWith('*')) {
|
||||||
|
// 阻止表单提交
|
||||||
|
event.preventDefault()
|
||||||
|
// 显示错误信息
|
||||||
|
Qmsg.warning(!query ? '请输入搜索内容' : '搜索内容不能以 * 开头')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(DreamConfig.pjax_state) {
|
||||||
|
// 阻止表单提交
|
||||||
|
event.preventDefault()
|
||||||
|
searchForm.setAttribute('data-pjax', '')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<form id="halo-search-form" class="search-form-inner" method="get" action="/search" role="search">
|
||||||
<input
|
<input
|
||||||
|
id="halo-search-form-text-input"
|
||||||
class="text-input"
|
class="text-input"
|
||||||
type="search"
|
type="search"
|
||||||
name="keyword"
|
name="keyword"
|
||||||
th:title="${theme.config.page_config.search.search_placeholder}"
|
th:title="${theme.config.page_config.search.search_placeholder}"
|
||||||
th:placeholder="${theme.config.page_config.search.search_placeholder}"
|
th:placeholder="${theme.config.page_config.search.search_placeholder}"
|
||||||
th:value="${searchResult.keyword}"
|
th:value="${searchResult.keyword}"
|
||||||
required
|
|
||||||
/>
|
/>
|
||||||
<button class="search-form-btn" th:title="${theme.config.page_config.search.search_btn_title}" type="submit">
|
<button class="search-form-btn" th:title="${theme.config.page_config.search.search_btn_title}" type="submit">
|
||||||
<i class="ri-search-line"></i>
|
<i class="ri-search-line"></i>
|
||||||
|
@ -30,7 +30,7 @@ spec:
|
|||||||
settingName: theme-dream2-plus-setting
|
settingName: theme-dream2-plus-setting
|
||||||
configMapName: theme-dream2-plus-configMap
|
configMapName: theme-dream2-plus-configMap
|
||||||
# 版本号
|
# 版本号
|
||||||
version: 1.2.6.beta2
|
version: 1.2.6.beta6
|
||||||
# 最低支持的 Halo 版本
|
# 最低支持的 Halo 版本
|
||||||
require: ">=2.15.0"
|
require: ">=2.15.0"
|
||||||
# 许可
|
# 许可
|
||||||
|
Loading…
x
Reference in New Issue
Block a user