Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地预览正常,网页不显示 #6

Open
yanyuteng opened this issue May 23, 2019 · 2 comments
Open

本地预览正常,网页不显示 #6

yanyuteng opened this issue May 23, 2019 · 2 comments

Comments

@yanyuteng
Copy link

已经更改了head.swig,/echarts-template.html文件也改过了,但是本地预览正常,po在网页无法显示,请问可能是什么原因?

@yanyuteng
Copy link
Author

我目前的解决办法是在md的{% echarts 400 '85%' %}前加一行<script src="https://cdn.bootcss.com/echarts/3.8.0/echarts.common.min.js"></script>,这样可以正常显示,但是还是不理解为什么本地可以,网页不行

@kchen0x
Copy link
Owner

kchen0x commented May 24, 2019

你可以查看一下 hexo gpublic 文件夹下的输出,找到具体的博文源文件 index.html。

看看文件中是不是没有指明 echarts 的资源,如果没有可能是 template 注入失败了,我有空再排查一下是什么原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants