打造自己的Blog
前言
以前有使用過 hexo 建立Blog,但一直沒有好好的經營。最近又有想要開始寫 Blog 的念頭。 希望這一次,可以持續撰寫下去。
主要內容
由於筆者是使用 MacBook 作為日常使用的工具,所以本文將以 Mac 環境進行筆記。
安裝 Hugo
1brew install hugo
建立網站
1hugo new ${SITE_NAME}
撰寫文章
1cd ${SITE_NAME}
2hugo new posts/my-first-post.md
設定佈景主題
1git submodule add https://github.com/upagge/uBlogger.git themes/uBlogger
2echo 'theme = "uBlogger"' >> config.toml
修改樣式
建立相關資料夾
1mkdir -p assets/css/
加入自訂樣式
1code[class*="language-"] {
2 color: white;
3 text-shadow: none;
4}
小結
這次只有進行簡易的設定,還有許多功能還未探索。目前打算先用一陣子,再看看還有什麼有趣的東西。