(Linux)(Ubuntu) Hexo blog Posted on 2022-03-29 In Linux , Ubuntu 環境Ubuntu 20.04 (64 Bits)安裝執行下列指令12345apt-get --yes install curl dirmngr apt-transport-https lsb-release ca-certificatescurl -sL https://deb.nodesource.com/setup_12.x | bash -apt-get updateapt-get --yes install nodejs npm install hexo-cli -g 基本操作安裝Theme (範例: Next)下載Next12cd hexogit clone https://github.com/theme-next/hexo-theme-next themes/next 修改hexo/_config.yml1theme: next 撰寫Markdown 草稿hexo new –draft 草稿定案文本hexo publish 產生靜態網頁 僅文本內容1hexo generate 包含草稿內容1hexo generate --draft 啟動Web服務(預覽Hexo畫面)1hexo server