个人介绍 profile 卡片
This commit is contained in:
parent
ecb9cf9862
commit
89ce6b51d6
26
HTTP.http
26
HTTP.http
|
@ -1,14 +1,15 @@
|
|||
### cookie 修改 http-client.env.json 配置文件中的即可
|
||||
### 删除 settings 配置, Cookit 可以从 Console 后台 F12 获取
|
||||
DELETE http://localhost:8090/api/v1alpha1/settings/theme-hao-setting
|
||||
Content-Type: application/json
|
||||
Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3717a876af84bf0678bd=1664877624,1664884710; mozi-assist={"show":false,"audio":false,"speed":"middle","zomm":1,"cursor":false,"pointer":false,"bigtext":false,"overead":false}; Hm_lpvt_828db1fd637f3717a876af84bf0678bd=1665275924; XSRF-TOKEN=54b8f604-bde6-4977-8ba2-1ba66a1c334f; SESSION=25179b0d-8abb-4638-ab64-54eb277d7b5e
|
||||
Cookie: {{cookie}}
|
||||
|
||||
|
||||
### 设置 settings 的配置,将 settings 的配置文件先使用 yaml 转 json 转换后放在下面即可
|
||||
|
||||
POST http://localhost:8090/api/v1alpha1/settings
|
||||
Content-Type: application/json
|
||||
Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3717a876af84bf0678bd=1664877624,1664884710; mozi-assist={"show":false,"audio":false,"speed":"middle","zomm":1,"cursor":false,"pointer":false,"bigtext":false,"overead":false}; Hm_lpvt_828db1fd637f3717a876af84bf0678bd=1665275924; XSRF-TOKEN=54b8f604-bde6-4977-8ba2-1ba66a1c334f; SESSION=25179b0d-8abb-4638-ab64-54eb277d7b5e
|
||||
Cookie: {{cookie}}
|
||||
|
||||
{
|
||||
"apiVersion": "v1alpha1",
|
||||
|
@ -126,17 +127,19 @@ Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3
|
|||
"value": "profile,popular-posts,latest-comments,categories,tags",
|
||||
"help": "目前提供的小部件有:profile(站点资料), popular-posts(热门文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。"
|
||||
},
|
||||
{
|
||||
"$formkit": "group",
|
||||
"name": "profile",
|
||||
"label": "信息卡片",
|
||||
"children": [
|
||||
{
|
||||
"$formkit": "text",
|
||||
"name": "name",
|
||||
"placeholder": "请输入名称"
|
||||
}
|
||||
]
|
||||
"name": "profile_name",
|
||||
"label": "个人卡片名称",
|
||||
"placeholder": "请填写个人卡片名称",
|
||||
"help": "不填写默认为站点则名称"
|
||||
},
|
||||
{
|
||||
"$formkit": "textarea",
|
||||
"name": "profile_desc",
|
||||
"label": "个人卡片描述信息",
|
||||
"placeholder": "请填写个人卡片描述信息",
|
||||
"help": "支持使用 HTML 标签"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -146,5 +149,4 @@ Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3
|
|||
|
||||
|
||||
|
||||
|
||||
###
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"dev": {
|
||||
"cookie": "Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3717a876af84bf0678bd=1664877624,1664884710; mozi-assist={\"show\":false,\"audio\":false,\"speed\":\"middle\",\"zomm\":1,\"cursor\":false,\"pointer\":false,\"bigtext\":false,\"overead\":false}; Hm_lpvt_828db1fd637f3717a876af84bf0678bd=1665275924; XSRF-TOKEN=73e4ac5d-1176-4b86-aeb8-65ac5ac5155b; SESSION=81c19961-bd6b-44f3-ad30-a9a3da699d07"
|
||||
}
|
||||
}
|
|
@ -58,7 +58,6 @@ spec:
|
|||
value: true
|
||||
- label: 隐藏
|
||||
value: false
|
||||
|
||||
- group: sidebar
|
||||
label: 侧边栏
|
||||
formSchema:
|
||||
|
@ -67,10 +66,12 @@ spec:
|
|||
label: 小部件
|
||||
value: "profile,popular-posts,latest-comments,categories,tags"
|
||||
help: "目前提供的小部件有:profile(站点资料), popular-posts(热门文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。"
|
||||
- $formkit: group
|
||||
name: profile
|
||||
label: 信息卡片
|
||||
children:
|
||||
- $formkit: text
|
||||
name: name
|
||||
placeholder: 请输入名称
|
||||
name: profile_name
|
||||
label: 个人卡片名称
|
||||
placeholder: 请填写个人卡片名称
|
||||
help: "不填写默认为站点则名称"
|
||||
- $formkit: textarea
|
||||
name: profile_desc
|
||||
placeholder: 请填写个人卡片描述信息
|
||||
help: "支持使用 HTML 标签"
|
|
@ -2,39 +2,9 @@
|
|||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<div class="aside-content" id="aside-content" th:fragment="aside">
|
||||
<div class="card-widget card-info">
|
||||
<!-- 描述信息 -->
|
||||
<!--<div class="card-content">-->
|
||||
<!-- <div class="card-info-avatar is-center">-->
|
||||
<!-- <div class="author-info__sayhi" id="author-info__sayhi" th:text="${theme.config.aside.subtitle}">-->
|
||||
<!-- 你好啊!我是-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="author-info__name" th:text="${theme.config.aside.title}">Liu ZhiHang</div>-->
|
||||
<!-- <div class="author-info__description" th:utext="${theme.config.aside.description}">-->
|
||||
<!-- 这里可以写一些<b>公告信息</b>或者<b>个人介绍</b>。-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!--</div>-->
|
||||
|
||||
<!-- 跳转信息 -->
|
||||
<!--<div class="banner-button-group">-->
|
||||
<!-- <a class="banner-button" th:href="${theme.config.aside.button_link}">-->
|
||||
<!-- <i class="fas fa-circle-arrow-up-right"></i>-->
|
||||
<!-- <span class="banner-button-text" th:text="${theme.config.aside.button_text}">了解更多</span>-->
|
||||
<!-- </a>-->
|
||||
<!--</div>-->
|
||||
|
||||
<!--<div class="card-info-social-icons is-center">-->
|
||||
<!-- <a class="social-icon" th:href="${theme.config.aside.github}" rel="external nofollow" target="_blank"-->
|
||||
<!-- title="Github">-->
|
||||
<!-- <i class="ri-github-line"></i>-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="social-icon" th:href="${theme.config.aside.mail}" rel="external nofollow" target="_blank"-->
|
||||
<!-- title="Mail">-->
|
||||
<!-- <i class="ri-mail-line"></i>-->
|
||||
<!-- </a>-->
|
||||
<!--</div>-->
|
||||
</div>
|
||||
<!-- 个人信息卡片 -->
|
||||
<div th:replace="modules/widgets/profile :: profile"></div>
|
||||
|
||||
<!-- 微信公众号 -->
|
||||
<div class="card-widget heo-right-widget" id="card-wechat" onclick='window.open("/wechat/")'>
|
||||
|
|
|
@ -7,9 +7,14 @@
|
|||
<div class="card-content">
|
||||
<div class="card-info-avatar is-center">
|
||||
<div class="author-info__sayhi" id="author-info__sayhi">你好啊!我是</div>
|
||||
<div class="author-info__name" th:text="${site.title}">Liu ZhiHang</div>
|
||||
<div class="author-info__description" th:utext="${theme.config.aside.description}">
|
||||
这里可以写一些<b>公告信息</b>或者<b>个人介绍</b>。
|
||||
<div class="author-info__name"
|
||||
th:if="${#strings.isEmpty(theme.config.sidebar.profile_name)}"
|
||||
th:text="${site.title}"></div>
|
||||
<div class="author-info__name"
|
||||
th:if="${not #strings.isEmpty(theme.config.sidebar.profile_name)}"
|
||||
th:text="${theme.config.sidebar.profile_name}"></div>
|
||||
<div class="author-info__description" th:utext="${theme.config.sidebar.profile_desc}">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue