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

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

View File

@@ -1,4 +1,4 @@
if (theme.sharejs && theme.sharejs.enable)
.social-share(data-image= page.cover|| theme.avatar.img data-sites= theme.sharejs.sites)
.social-share(data-image=url_for(page.cover|| theme.avatar.img) data-sites= theme.sharejs.sites)
link(rel="stylesheet" href=url_for(theme.CDN.sharejs_css))
script(src=url_for(theme.CDN.sharejs))