🐛 修復當博客root不是'/'時,引用本地圖片會顯示不出的bug close #211

This commit is contained in:
Jerry committed 2020-04-28 15:31:14 +08:00
1 parent 91d285391d
commit 250181c569
10 files changed
+31 -16

No files matched your search

+9 -1
View File
@@ -35,7 +35,15 @@ git clone -b dev https://github.com/jerryc127/hexo-theme-butterfly.git themes/Bu
## Documentation
Find in [hexo-theme-butterfly docs](https://docs.jerryc.me) and [JerryC](https://jerryc.me/posts/21cfbf15). it supports `zh-TW`
Find in [hexo-theme-butterfly docs](https://docs.jerryc.me) and [JerryC](https://jerryc.me/posts/21cfbf15). it supports `zh-TW` and `zh-CN`
You can also join the Chat Group.
[ 💬 Join QQ Group [recommend]](https://jq.qq.com/?_wv=1027&k=5KI3Jqb)
[ 💬 Join Telegram Group](https://t.me/hexo_butterfly)
## Screenshots
+7
View File
@@ -36,7 +36,14 @@ theme: Butterfly
可查看[hexo-theme-butterfly docs](https://docs.jerryc.me) 和 [JerryC](https://jerryc.me/posts/21cfbf15)
你也可以加入群組
[ 💬 QQ群 [推薦]](https://jq.qq.com/?_wv=1027&k=5KI3Jqb)
[ 💬Telegram群](https://t.me/hexo_butterfly)
## 截圖
![image](https://user-images.githubusercontent.com/16351105/58887365-1272f780-8718-11e9-9329-3292c6ba20d4.png)
![image](https://user-images.githubusercontent.com/16351105/58887457-3cc4b500-8718-11e9-9417-2bdea603c92e.png)
+1 -1
View File
@@ -1,5 +1,5 @@
- var top_img = theme.error_404.background || theme.default_top_img
- var bg_img = `background-image: url(${top_img})`
- var bg_img = `background-image: url(${url_for(top_img)})`
doctype html
html(lang=config.language data-theme=theme.display_mode)
Loaded 3 of 10 files, more files were not shown because too many files have changed in this diff. Show more