Comments (5)
初步猜测是hexo插件问题,或者是缺少插件,或者是版本(过高/过低)不兼容。
可以尝试一下这个办法,行动之前切记备份整个博客文件夹。
博客根目录名称为Blog
删除根目录下package.json
和package-lock.json
文件,以及整个node_modules
文件夹。
新建文件package.json
,写入:
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.7.1"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-baidu-sitemap": "^0.1.2",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.2.2",
"hexo-generator-index": "^0.2.0",
"hexo-generator-sitemap": "^1.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-marked": "^0.3.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-search": "^1.0.4",
"hexo-server": "^0.2.2"
}
}
将新建文件package.json
移动到Blog
根目录,
打开终端,cd
到Blog
文件夹下,
输入命令npm install
,等待依赖安装完成。
如果因为网络问题失败,
- 要么使用淘宝镜像,
npm config set registry https://registry.npm.taobao.org
- 要么科学上网
如果因为权限问题失败,sudo chown -R $(whoami) 文件夹路径
依赖安装完成后,使用hexo s
测试效果。
@FenghuJi
@colleen2joe
@ggbdpq
from fexo.
我也出现了相同的情况,按钮显示出错,期待作者大人的回复QAQ
from fexo.
我认为是图标名称的问题,没有正确导向到icon。我修改了_partial/component/pagination.ejs文件,将prev_text: '',
next_text: '',两句删除了,然后呈现这样的效果,暂时没那么难看了
from fexo.
吃瓜坐等作者解决这问题。我的应急方案是改为:
prev_text: '<',
next_text: '>',
虽然渲染不出来,但是原生的"<"和">"天生就是一个icon,即便效果是一样的,但是还是希望作者能解决这个微不足道的小问题。谢谢!
from fexo.
<% if (page.total > 1){ %>
from fexo.
Related Issues (20)
- 代码段设置可以换行不知道怎么解决(python是要求缩进的,一换行就错了) HOT 1
- 提一个小需求 ☺️ 希望可以设置全局的背景图片 HOT 1
- @forsigner 这个应该不是 hexo 自身的问题吧。我测试了一下,如果我用默认的 landscape 主题,然后在 hexo 的 _config.yml 中将 URL 改为 http://example.com/blog,root 改为 /blog/,是正常的。但是用您的这个主题这样做的话,JS、CSS、字体的 URL 还是http://example.com/css/、http://example.com/js/。 HOT 1
- 代码块能不能改颜色
- 能不能把盒子按钮改成默认显示... HOT 2
- 将首页修改为 POST 之后移动端“盒子”不显示 HOT 1
- 关于主题移植 HOT 1
- 请教几个问题,关于404界面和目录的疑问 HOT 3
- 博客文章页的脚猪怎么去掉呢 HOT 1
- 手机端下 Safari 不能使用打赏功能 HOT 1
- 主题的备案信息如何设置? HOT 2
- 有hugo迁移的打算吗? HOT 1
- “Categories”分页标识字符溢出
- 切页按钮展示和搜索问题 HOT 1
- 文章列表的切换页面有问题啊,请求大佬解决! HOT 3
- 单页评论关不了
- 数学公式显示 HOT 2
- 分页显示有点问题 HOT 1
- 标题下面的人名怎么换
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fexo.