Hexo筆記

不知不覺Hexo已經去到了5.0了,先寫一篇紀錄。

安裝Hexo

yarn add hexo

建立新檔案

hexo init newBlog
cd newBlog

開啟 Localhost

yarn run server

清理 Public folder 和 db.json

yarn run clean

建立Public folder裡的檔案

yarn run build

P.S: 其實現在package.json已經齊了build, server, clean, deploy指令了XD

建立一篇新的文章

hexo new (title)

安裝RSS

yarn add hexo-generator-feed

// 修改 _config.yml
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit:
content_limit_delim: ' '

安裝siteMap

yarn add hexo-generator-sitemap

// 修改 _config.yml
sitemap:
path: sitemap.xml

上傳到GitHub

yarn add hexo-deployer-git

// 修改 _config.yml
deploy:
type: git
repo:
github: https://github.com/(username)/(username).github.io
Newer
下載Web API返回的Binary格式檔案
Older
VScode插件 - PostCSS Sorting