Skip to content

Commit

Permalink
📃 docs: 文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Dec 9, 2022
1 parent 6ce1680 commit 838df82
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 9 deletions.
18 changes: 18 additions & 0 deletions docs/.vitepress/assets/log.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
{
"large_version": "v1.2.x",
"children": [
{
"version": "1.2.6",
"date": "2022-12-09",
"logs": [
{
"type": "feat",
"text": "封面日期添加格式化配置"
},
{
"type": "perf",
"text": "优化移动端中banner、文章详情里svg样式"
},
{
"type": "fix",
"text": "文章目录显示全部"
}
]
},
{
"version": "1.2.5",
"date": "2022-11-26",
Expand Down
23 changes: 18 additions & 5 deletions docs/.vitepress/components/ChangeLog.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<script setup >
const types = {
feat: "",
fix: "🐞",
perf: "🎈",
refactor: "🦄",
style: "🌈",
docs: "📃"
}
const props = defineProps({
type: String,
text: {
Expand All @@ -10,29 +18,34 @@ const props = defineProps({
</script>

<template>
<li class="log" :class="type">
<slot>{{ type }}:<span v-html="text"></span></slot>
<li class="log" :class="type" :title="type">
<slot>
<span class="type">{{ types[type] }}:</span>
<span v-html="text"></span>
</slot>
</li>
</template>

<style lang="less" scoped>
.log {
list-style: none;
&.feat {
color: #2d8cf0;
}
&.fix {
color: #ff2600;
color: #d9391b;
}
// 样式
&.style {
color: #2db7f5;
color: #b86d3b;
}
// 优化
&.refactor {
color: #19be6b;
color: #35b9d7;
}
}
</style>
Expand Down
11 changes: 11 additions & 0 deletions docs/.vitepress/theme/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
--vp-c-brand-lighter: #0077e7cb;
--vp-button-brand-bg: @brand;
--content-width : 1000px;

--vp-home-hero-name-background : linear-gradient(135deg, #43CBFF 10%, #9708CC 100%);
--vp-home-hero-name-color : transparent;
/* --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter : blur(80px); */

&.dark {
.VPImage.image-src{
filter: invert(1);
}
}
}

.VPSidebar {
Expand Down
10 changes: 6 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@ title: 主页
layout: home

hero:
text: Hexo-Theme-Async
name: Hexo-Theme-Async
image:
src: /logo.gif
tagline: 🎈 A simple & lightweight theme for Hexo.
actions:
- text: 快速上手
- text: 🚀 快速上手
link: /guide/
- text: 示例站点
- text: 💻 示例站点
link: /demo/
color: green
theme: alt

features:
- title: 简洁
icon: 🌸
details: 简洁、优雅、轻量、美观的用户界面。
- title: 多端
icon: ⚡️
details: 响应式界面,支持手机、平板、PC 多种平台。
- title: PWA
icon: 🛠️
details: 支持PWA,提升访问速度,可离线使用。

footer:
Expand Down

0 comments on commit 838df82

Please sign in to comment.