想换hexo主题
localhost:hexo chenkuntao$ cd themes
localhost:themes chenkuntao$ cd next
localhost:next chenkuntao$ git pull
Already up-to-date.
但是总是出现Already up-to-date. 看了网页没有更新 怎么办
想换hexo主题
localhost:hexo chenkuntao$ cd themes
localhost:themes chenkuntao$ cd next
localhost:next chenkuntao$ git pull
Already up-to-date.
但是总是出现Already up-to-date. 看了网页没有更新 怎么办
你这只是更新主题的源码,还没有生成网页文件,当然看不到网页的变化啦
更新主题后,要打开终端,切换到 hexo 工程所在文件夹,运行 hexo g 才能重新生成网页文件。
详见 Hexo 文档
https://hexo.io/zh-cn/docs/commands.html
你光下载主题没用啊、步骤如下
1:就是你的这部操作 git clone xxx主题
2:启用主题、在主题配置文件
_config.yml
里面设置theme
为你的新主题3:使用
hexo g
重新编译一遍、如果不确定是否重新编译过了、直接删除public文件夹、然后hexo g
4:将生成好的
public
推送到响应的地方去、重新刷新网站、应该就可以了