大概做一下筆記
安裝
安裝Hugo程式,下載Coder主題。將主題解壓縮後,再使用Eclipse編輯。
編輯的過程中,Hugo server可以即時呈現改好的內容,十分方便。
C:\Users\markt\dev\exampleSite>hugo server
產生網頁
用Hugo的功能產生網頁,再把產生在public檔案來中的檔案上傳到github上。
C:\Users\markt\dev\exampleSite>hugo
設定Utterances留言系統
打開utterances的安裝網頁,並在config.toml設定
[params.utterances]
repo = "marktw75/marktw75.github.io" # https://utteranc.es/#heading-repository
issueTerm = "pathname" # https://utteranc.es/#heading-mapping
label = "comment" # https://utteranc.es/#heading-issue-label
theme = "github-light" # https://utteranc.es/#heading-theme
設定Google Analytics
到Google Analytics註冊登記個人網站,再把得到的ID加入設定檔中
googleAnalytics = 'id'
加入Google Search Console
到Google Search Console設定,過了兩天,用文章標題查詢終於可以搜尋到。
更改favicon
上網找到線上繪圖工具畫了
favicon-16x16.png和
favicon-16x16.png,放到 static/images中,取代原先的檔案。