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

hexo g报错 #29

Open
WangGakin opened this issue Nov 10, 2022 · 3 comments
Open

hexo g报错 #29

WangGakin opened this issue Nov 10, 2022 · 3 comments

Comments

@WangGakin
Copy link

屏幕截图 2022-11-10 120021
代码报错

屏幕截图 2022-11-10 120229
在有了renderer-less的情况下还是失败,是需要其它运行库吗?

@savagesivan
Copy link

解决了吗?我也遇到了这个问题,引用了同目录下的图片放在文章里面就有这个问题了。不知道是不是因为安装了插件‘hexo-renderer-marked’,安装之后在根目录的config.yml里面加了一句:
marked:
prependRoot: true
postAsset: true
我觉得可能是这个原因

@RionoirCom
Copy link

coming from another theme, I have the same Problem, is there a solution?

@chao-eng
Copy link

<% page.categories.data.map((cat)=>{ %> <a href="../../<%- cat.path %>" target="_blank" ><%- cat.name %></a> <% }) %>
替换为
<div class="post-header-info-author-categories"> <% if (page.categories && page.categories.length > 0) { %> <% page.categories.forEach(category => { %> <a href="<%- url_for(category.path) %>"target="_blank"> <%- category.name %> </a> <% }); %> <% } %> </div>

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

4 participants