Giter Site home page Giter Site logo

Comments (5)

ykqmain avatar ykqmain commented on July 24, 2024 1

初步猜测是hexo插件问题,或者是缺少插件,或者是版本(过高/过低)不兼容。

可以尝试一下这个办法,行动之前切记备份整个博客文件夹

博客根目录名称为Blog

删除根目录下package.jsonpackage-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根目录,

打开终端,cdBlog文件夹下,

输入命令npm install,等待依赖安装完成。

如果因为网络问题失败,

  • 要么使用淘宝镜像,npm config set registry https://registry.npm.taobao.org
  • 要么科学上网

如果因为权限问题失败,sudo chown -R $(whoami) 文件夹路径

依赖安装完成后,使用hexo s测试效果。

@FenghuJi
@colleen2joe
@ggbdpq

from fexo.

colleen2joe avatar colleen2joe commented on July 24, 2024

我也出现了相同的情况,按钮显示出错,期待作者大人的回复QAQ

from fexo.

colleen2joe avatar colleen2joe commented on July 24, 2024

我认为是图标名称的问题,没有正确导向到icon。我修改了_partial/component/pagination.ejs文件,将prev_text: '',
next_text: '',两句删除了,然后呈现这样的效果,暂时没那么难看了
image

from fexo.

 avatar commented on July 24, 2024

吃瓜坐等作者解决这问题。我的应急方案是改为:

prev_text: '<',
next_text: '>',

虽然渲染不出来,但是原生的"<"和">"天生就是一个icon,即便效果是一样的,但是还是希望作者能解决这个微不足道的小问题。谢谢!

from fexo.

nekkomoe avatar nekkomoe commented on July 24, 2024

<% if (page.total > 1){ %>

<%- paginator({ prev_text: '', next_text: '', mid_size: 1 }) %>
<% } %> 这个,缺了一条escape: false

from fexo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.