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 5不兼容 #266

Closed
jingsam opened this issue Aug 7, 2020 · 3 comments
Closed

与hexo 5不兼容 #266

jingsam opened this issue Aug 7, 2020 · 3 comments

Comments

@jingsam
Copy link
Contributor

jingsam commented Aug 7, 2020

升级到hexo 5后,hexo serve显示

{%- extends "_layout.swig" -%} {%- import '_macro/post.swig' as post_template -%} {%- import '_macro/archive.swig' as archive_template -%} {%- block title -%} {{ config.title }} {%- endblock -%} {%- block content -%} {%- set mode = theme.mode.toLowerCase() -%}
{%- if mode == 'default' -%} {%- for post in page.posts -%} {{ post_template.render(post) }} {%- endfor -%} {%- include "_partial/pagination.swig" -%} {%- else -%} {{ archive_template.render() }} {%- endif -%}
{%- endblock -%}
@stevenjoezhang
Copy link

Hexo 5 把 swig 渲染插件删了,需要单独安装

npm i hexo-renderer-swig

@wiwi289
Copy link

wiwi289 commented Oct 16, 2020

很棒,困扰了我好久的问题,原来是hexo 5把swing渲染插件删除了

@ahonn
Copy link
Owner

ahonn commented Oct 19, 2020

resloved. 已在 README 中添加依赖 hexo-renderer-swig 的安装

@ahonn ahonn closed this as completed Oct 19, 2020
@ahonn ahonn pinned this issue Nov 27, 2020
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