支持搜索插件
This commit is contained in:
parent
71079c4cde
commit
bcb95dfbb9
|
@ -10,15 +10,6 @@ spec:
|
|||
- $formkit: menuRadio
|
||||
name: left_menu
|
||||
label: 导航栏左侧相关链接
|
||||
- $formkit: radio
|
||||
name: right_menu
|
||||
label: 右上角四个按钮
|
||||
value: true
|
||||
options:
|
||||
- label: 显示
|
||||
value: true
|
||||
- label: 隐藏
|
||||
value: false
|
||||
- $formkit: text
|
||||
name: site_title
|
||||
label: 标题
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<!-- 导航栏菜单栏 -->
|
||||
<div id="nav-right" th:fragment="nav-right" th:if="${theme.config.nav.right_menu}">
|
||||
<div id="nav-right" th:fragment="nav-right">
|
||||
|
||||
<!-- 功能都需要添加开关 -->
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
|||
</div>
|
||||
|
||||
<!-- 搜索使用搜索插件 -->
|
||||
<div class="nav-button" id="search-button">
|
||||
<a class="site-page social-icon search" href="javascript:void(0);" rel="external nofollow" title="站内搜索">
|
||||
<div class="nav-button" id="search-button" th:if="${pluginFinder.available('PluginSearchWidget')}">
|
||||
<a class="site-page social-icon search" href="javascript:SearchWidget.open();" rel="external nofollow" title="站内搜索">
|
||||
<i class="iconfont icon-search" style="font-size:1rem"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -216,8 +216,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<!-- 评论模块,使用评论插件 -->
|
||||
<div id="post-comment">
|
||||
<!-- 评论模块 -->
|
||||
<div id="post-comment" th:if="${pluginFinder.available('PluginCommentWidget')}">
|
||||
<div class="comment-head">
|
||||
<div class="comment-headline"><i class="iconfont icon-comment-alt"></i> <span>评论</span></div>
|
||||
<div class="comment-privacy"><a href="#">隐私政策</a></div>
|
||||
|
|
Loading…
Reference in New Issue