支持自定义侧边栏
This commit is contained in:
parent
9d47fe017b
commit
6a18943b9d
|
@ -122,9 +122,26 @@ spec:
|
||||||
label: "左侧"
|
label: "左侧"
|
||||||
- $formkit: textarea
|
- $formkit: textarea
|
||||||
name: widgets
|
name: widgets
|
||||||
label: 小部件(无效)
|
label: 小部件
|
||||||
value: "profile,recent-posts,latest-comments,categories,tags"
|
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
|
||||||
help: "目前提供的小部件有:profile(站点资料), recent-posts(近期文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。"
|
help: "目前提供的小部件有:profile(站点资料), wechat(微信), recent-posts(近期文章), comments(最新评论), categories(文章分类), tags(文章标签), stat(统计), tags-stat(标签&统计)。你可以随意组合或排序,以逗号隔开。"
|
||||||
|
- $formkit: textarea
|
||||||
|
name: post_widgets
|
||||||
|
label: 文章页面小部件
|
||||||
|
value: "profile,wechat,toc,comments,recent-posts,categories,tags-stat"
|
||||||
|
help: "post 可以支持设置 toc "
|
||||||
|
- $formkit: textarea
|
||||||
|
name: tag_widgets
|
||||||
|
label: 标签页面小部件
|
||||||
|
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
|
||||||
|
- $formkit: textarea
|
||||||
|
name: category_widgets
|
||||||
|
label: 分类页面小部件
|
||||||
|
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
|
||||||
|
- $formkit: textarea
|
||||||
|
name: page_widgets
|
||||||
|
label: 自定义页面小部件
|
||||||
|
value: ""
|
||||||
- $formkit: text
|
- $formkit: text
|
||||||
name: profile_name
|
name: profile_name
|
||||||
label: 个人卡片名称
|
label: 个人卡片名称
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
<div class="pagination"><span class="page-number current">1</span></div>
|
<div class="pagination"><span class="page-number current">1</span></div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div th:replace="modules/aside :: aside('profile,recent-posts,tags-stat')"></div>
|
<div th:replace="modules/aside :: aside(${theme.config.sidebar.category_widgets})"></div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<th:block th:replace="modules/post-list :: post-list"></th:block>
|
<th:block th:replace="modules/post-list :: post-list"></th:block>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div th:replace="modules/aside :: aside('profile,wechat,comments,recent-posts,categories,tags-stat')"></div>
|
<div th:replace="modules/aside :: aside(${theme.config.sidebar.widgets})"></div>
|
||||||
</main>
|
</main>
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
<footer th:replace="modules/footer :: footer"></footer>
|
<footer th:replace="modules/footer :: footer"></footer>
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
<div id="page">
|
<div id="page">
|
||||||
<div id="article-container line-numbers" th:utext="${singlePage.content.content}"></div>
|
<div id="article-container line-numbers" th:utext="${singlePage.content.content}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 侧栏 -->
|
||||||
|
<div th:replace="modules/aside :: aside(${theme.config.sidebar.page_widgets})"></div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
<footer th:replace="modules/footer :: footer"></footer>
|
<footer th:replace="modules/footer :: footer"></footer>
|
||||||
|
|
|
@ -230,7 +230,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 侧栏 -->
|
<!-- 侧栏 -->
|
||||||
<div th:replace="modules/aside :: aside('profile,toc,recent-posts,tags-stat')"></div>
|
<div th:replace="modules/aside :: aside(${theme.config.sidebar.post_widgets})"></div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<div class="pagination"><span class="page-number current">1</span></div>
|
<div class="pagination"><span class="page-number current">1</span></div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div th:replace="modules/aside :: aside('profile,recent-posts,tags-stat')"></div>
|
<div th:replace="modules/aside :: aside(${theme.config.sidebar.tag_widgets})"></div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
|
|
Loading…
Reference in New Issue