mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-11-30 01:02:18 +08:00
e3e015bcaf0956ca606bf1522b0dc057c2ed358a
#### What type of PR is this? /kind feature #### What this PR does / why we need it: 固定了文章目录。 <img width="1255" alt="image" src="https://user-images.githubusercontent.com/114651359/233912961-2d3dea34-7e58-4ded-8b86-022cd9e33650.png"> <img width="1212" alt="image" src="https://user-images.githubusercontent.com/114651359/233913545-27a3df11-227e-4b7b-946e-c1f8b8b2c4a8.png"> #### Which issue(s) this PR fixes: Ref #49 #### Special notes for your reviewer: 1、粘性位置,距离顶部5rem,z层50 2、目录最大高度为10rem #### Does this PR introduce a user-facing change? ```release-note 固定了文章目录栏。 ```
Earth
Halo 2.0 的默认主题。
开发
git clone git@github.com:halo-dev/theme-earth.git ~/halo2-dev/themes/theme-earth
cd ~/halo2-dev/themes/theme-earth
pnpm install
pnpm dev
主题开发文档可查阅:https://docs.halo.run/2.0.0-SNAPSHOT/developer-guide/theme/prepare
构建
如果你使用的是 Windows 操作系统,请安装
make命令并在 Git Bash 或 WSL 中执行。
make build
然后将 dist 目录压缩成 ZIP 格式压缩包即可在 Halo 后台上传安装。
Description
Languages
HTML
71.1%
CSS
19.4%
TypeScript
7.4%
SCSS
1.5%
JavaScript
0.6%
