Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
fix: mistake in iconfont path
Browse files Browse the repository at this point in the history
Signed-off-by: Joyition <[email protected]>
  • Loading branch information
FidStyle authored Feb 29, 2024
1 parent 7a5ca2d commit e79dc09
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/guide/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,23 @@ iconfont: "4415496_59g1326wajd"

#### 6、修改_iconfont.styl文件

打开文件`/source/css/_iconfont.styl`进行编辑。
打开文件`/node_modules/hexo-theme-shokax/source/css/_iconfont.styl`进行编辑。

:::tip
为了方便操作,建议为本主题文件夹创建软链接。

| 终端 | 命令 |
|-----------|------------------------------------------------------------|
| Windows CMD | `mklink /J .\themes\shokax .\node_modules\hexo-theme-shokax` |
| Linux Bash | `ln -s ./themes/shokax ./node_modules/hexo-theme-shokax` |


Check failure on line 142 in docs/guide/theme.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

docs/guide/theme.md:142 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md012.md
此时`_iconfont.styl`路径为`/themes/shokax/source/css/_iconfont.styl`。
:::

在浏览器中打开您的iconfont链接(此处以`//at.alicdn.com/t/c/font_4415496_59g1326wajd.css`为例,请替换为实际链接)。

复制新增图标对应的以“.i-”为前缀的代码,添加到`/source/css/_iconfont.styl`文件末尾。
复制新增图标对应的以“.i-”为前缀的代码,添加到`_iconfont.styl`文件末尾。

例如,添加Gitee图标的代码如下:

Expand Down

0 comments on commit e79dc09

Please sign in to comment.