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 server)时遇到问题 #44

Open
matrixgardener opened this issue Jul 30, 2018 · 6 comments
Open

安装预览(hexo server)时遇到问题 #44

matrixgardener opened this issue Jul 30, 2018 · 6 comments

Comments

@matrixgardener
Copy link

我安装教程安装主题,但是我在预览(hexo server)时遇到以下的问题:
extends partial/layout block content .autopagerize_page_element: .content - page.posts.each(function (item) { include mixins +make_post(item, false) - }) include mixins +make_pager(__('prev'), __('next'))

网页显示这个而不是更换好的主题,不知道我那步出错了?
我的默认主题加载正常,看到您的主题很喜欢,步骤:
安装主题git clone ~~~themes/anatole
更改_config.yml文件,中themes到anatole
hexo clean;hexo generate;hexo server,后来就显示上面的问题。

@CheYuZhiZhi
Copy link

朋友,你的这个问题解决了吗?我今天安装时也遇到了这个问题。

@Lhcfl
Copy link

Lhcfl commented Aug 23, 2018

+1

@CheYuZhiZhi
Copy link

我现在已经解决这个问题了。建议通过压缩包进行安装,npm install --save hexo-render-pug一定要进行运行。

@Lhcfl
Copy link

Lhcfl commented Aug 23, 2018

thanks!

@guestccc
Copy link

guestccc commented Sep 4, 2018

在npm引入或者下载压缩包后,需要先npm install --save hexo-render-pug
image
然后再来一个npm server 本地看一下

@Antelopeclouds
Copy link

npm install --save hexo-render-pug 安装是在 hexo 根目录,而非主题目录 :)

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

5 participants