本文最后更新于 2 年前,文中所描述的信息可能已发生改变。
包含 MarkDown 文件
Initial commit
:pencil: update content
update time: %date% %time%
适用Batchupdate time: $(date)
适用Shell
bat
@echo off
@REM 如果没有消息后缀,默认提交信息为 "update time: %date% %time%"
set info=%~1
if not defined info set info="update time: %date% %time%"
git add -A
git commit -m "%info%"
git push
sh
#!/bin/bash
# 如果没有消息后缀,默认提交信息为 "update time: $(date)"
info="${1:-update time: $(date)}"
git add -A
git commit -m "$info"
git push
Time Warning
time_warning 默认为 180 天。


部分内容加密
md
<!-- valaxy-encrypt-start:sssss -->
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
<!-- valaxy-encrypt-end -->
CODE
ts
import type { ThemeConfig } from 'valaxy-theme-yun'
import { defineValaxyConfig } from 'valaxy'
const safelist = [
'i-ri-home-line',
]
export default defineValaxyConfig<ThemeConfig>({
// site config see site.config.ts or write in siteConfig
// siteConfig: {},
theme: 'yun',
themeConfig: {
banner: {
enable: true,
title: '云游君的小站',
},
notice: {
enable: true,
content: '公告测试',
},
},
unocss: {
safelist,
},
})
代码组
sh
npm install vitepress-plugin-group-icons
sh
yarn add vitepress-plugin-group-icons
sh
pnpm add vitepress-plugin-group-icons
sh
bun add vitepress-plugin-group-icons