史戴拉寫扣

Hands-on fuels my soul!

要使用部分進階語法,需要先將 Hexo 的 Markdown 渲染器從 marked 更換為 markdown-it。若尚未完成此步驟,請看 Markdown 渲染器從 marked 換成 markdown-it 這篇文章。

本文在成功更換渲染器後,將詳細介紹更多 Hexo 撰寫文章的進階語法。這些語法包含了 Markdown 和 Hexo 的應用,如插入 emoji、代辦事項、數學公式、螢光筆效果、自定義提示區塊、Mermaid 圖表視覺化,以及 NexT 預設提示區塊。

Read more »

當設定好 Hexo 基本設定及完成文章撰寫後,就可以公開發佈了 。本文主要說明如何部署 Hexo 部落格網站到 GitHub Pages。從建立 GitHub Repo 的命名注意事項、安裝 Hexo 一鍵佈署工具、修改 Hexo config 檔案,到最後部署時 GitHub Pages 的相關設定。

Read more »

本文主要介紹如何在 Hexo 部落格中新增及撰寫文章。在 Hexo 中,可以透過一行指令新增文章,並有三種模板種類:post、page 和 draft。文章可以在 VS Code 中用 markdown 語法撰寫,且 Hexo 本身也有內建的語法,可以讓文字有不同的呈現格式。最後,文章的圖片需要另外找放圖片空間,如 imgur 或 Firebase Storage,並透過複製連結的方式插入文章中。

Read more »

本文主要介紹如何替換 Hexo 部落格主題。介紹如何在 Hexo 中使用 NexT 主題,首先下載 NexT 主題以及如何在 Hexo 配置文件中更改主題為 NexT。也將會使用 NexT 主題的配置文件,更改程式碼區塊樣式、導覽列樣式,以及新增導覽列頁面。

Read more »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

0%