Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

NaturalSelectionLabs/hexo-deployer-rss3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-deployer-rss3

RSS3 deployer plugin for Hexo.

📝 Docs

For Hexo generators' using instructions, you can refer to One-Command Deployment - Hexo

A detailed tutorial can be found at Deploying Hexo Blog to RSS3

🎁 Install

npm install hexo-deployer-rss3

or

yarn add hexo-deployer-rss3

You need Node v14 or later to run it properly, old versions cannot recognize ?. and thus would cause Unexpected token error. Referrer to Optional chaining for more information.

💎 Before start...

  1. What means for privateKey field in config ?

    It's the only thing marking you as the full controller of a RSS3 persona. Remember to take good care of it.

    Theoretically you can use any ETH-compatible private keys, but we prefer you to generate one using Re: ID.

    This way, you can also get what you've published clearly in a simple way.

  2. What if I don't have any IPFS gateway accounts ?

    You can manually choose whether publish to IPFS or not by changing ipfs/deploy field.

    We also provide one pair of api key for you to enjoy RSS3, which has been provided in below demo.

    We do not promise any accessibility of files Larger than 50 MB. DO NEVER abuse it.

    Only the post html file itself could be deployed to IPFS currently. Please confirm if your theme can render correctly in single-file mode (like open generated html files after hexo g) before enabling the ipfs/deploy option.

⚙ Config

Add hexo-deployer-rss3 specified configurations info your site's _config.yml file.

deploy: # definitation root for all deployers
- type: rss3
  endpoint: https://hub.rss3.io # link to a RSS3 hub
  privateKey: 47e18d6c386898b424025cd9db446f779ef24ad33a26c499c87bb3d9372540ba # your private key, 64 chars
  ipfs: # ipfs specified configurations
    deploy: true # deploy to IPFS
    gateway: pinata # IPFS API gateway
    api: # IPFS gateway related auth credentials
      key: 74791336243c5c676fe0
      secret: 2c46a3249a3f4dce9b4fafd55304985ef14abdcd44a4f06fb0f3a4133e80c1d0