Git Product home page Git Product logo

hexo-deployer-rss3's People

Contributors

candinya avatar dependabot[bot] avatar mhuig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hexo-deployer-rss3's Issues

安装 hexo-abbrlink 插件后文件路径错误

安装了 hexo-abbrlink 插件,运行hexo d 后报错.

_config.yml

# hexo-abbrlink
# https://github.com/rozbo/hexo-abbrlink
permalink: posts/:abbrlink.html
abbrlink:
  alg: crc32  # 算法:crc16(default) and crc32
  rep: hex    # 进制:dec(default) and hex
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks
deploy: # 所有部署器的根配置块
- type: rss3
  endpoint: https://hub.rss3.io # 一个 RSS3 Hub 的链接
  privateKey: xx # 您的私钥,64字节。
  ipfs: # ipfs 相关的配置
    deploy: true # 是否部署到 IPFS
    gateway: pinata # IPFS API 网关
    api: # IPFS 网关相关的验证内容
      key: xx
      secret: xx

报错信息(截取一部分):

INFO  Deploying: rss3
Start processing XXXXX ...
ReadStream {
  fd: null,
  path: 'public\\posts\\xxxxxxxxx.html\\index.html',
  flags: 'r',
  mode: 438,
  start: undefined,
  end: Infinity,
  pos: undefined,
  bytesRead: 0,
  closed: false,
  _readableState: ReadableState {
.............................................
  [Symbol(kIsPerformingIO)]: false,
  [Symbol(kCapture)]: false
}
[Error: ENOENT: no such file or directory, open 'xxxxxx\blog-source\public\posts\xxxxxxxxx.html\index.html'] 
.............................................
}
FATAL {
  err: TypeError: Cannot read properties of undefined (reading 'data')
      at parseToRSS3Item (xxxxxx\hexo-deployer-rss3\lib\deployer.js:192:21)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async Hexo.module.exports (xxxxxx\hexo-deployer-rss3\lib\deployer.js:240:28)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

目标文件是 xxxxxx\blog-source\public\posts\xxxxxxxxx.html 并不是 xxxxxx\blog-source\public\posts\xxxxxxxxx.html\index.html

const file = fs.createReadStream(path.join(publicDir, post.path, 'index.html'));

除了这个错误,还有一些问题:

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.