level 1
眼里有光高建国
楼主
打开后是{% extends '_layout.swig' %} {% import '_macro/post.swig' as post_template %} {% import '_macro/sidebar.swig' as sidebar_template %} {% block title %}{{ config.title }}{% if theme.index_with_subtitle and config.subtitle %} - {{config.subtitle }}{% endif %}{% endblock %} {% block page_class %} {% if is_home() %}page-home{% endif -%} {% endblock %} {% block content %}{% for post in page.posts %} {{ post_template.render(post, true) }} {% endfor %}{% include '_partials/pagination.swig' %} {% endblock %} {% block sidebar %} {{ sidebar_template.render(false) }} {% endblock %}这样的乱码。
后来查找,说是原因是hexo在5.0之后把swig给删除了需要自己手动安装,但是
npm i hexo-renderer-swig后问题没有解决,求问大佬怎么办
2024年08月15日 14点08分
1
后来查找,说是原因是hexo在5.0之后把swig给删除了需要自己手动安装,但是
npm i hexo-renderer-swig后问题没有解决,求问大佬怎么办