feat:侧边栏最新发布文章限制数量 (#88)

feat;最近发布文章数量限制
This commit is contained in:
sunheyi 2023-02-09 17:54:50 +08:00 committed by GitHub
parent c83add6edf
commit f76d6e57fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -550,6 +550,11 @@ spec:
label: 阅读建议 label: 阅读建议
value: 4 value: 4
help: "推荐阅读的文章数量" help: "推荐阅读的文章数量"
- $formkit: number
name: recentPost
label: 最近发布文章
value: 4
help: "最近发布的文章数量"
- $formkit: radio - $formkit: radio
name: copyright name: copyright
label: 版权声明 label: 版权声明

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"> <html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="card-widget card-recent-post" th:fragment="recent-posts" th:with="posts = ${postFinder.list(1,6)}"> <div class="card-widget card-recent-post" th:fragment="recent-posts" th:with="posts = ${postFinder.list(1,theme.config.post.recentPost)}">
<div class="item-headline"><i class="iconfont icon-listol"></i><span>最近发布</span></div> <div class="item-headline"><i class="iconfont icon-listol"></i><span>最近发布</span></div>
<div class="aside-list"> <div class="aside-list">
<!-- 最新文章,用户可以自定义展示数量 --> <!-- 最新文章,用户可以自定义展示数量 -->