Hugo—Favicon

Reference

https://www.vincentthh35.com/p/%E8%A8%AD%E5%AE%9A-hugo-%E7%B6%B2%E9%A0%81%E7%9A%84-favicon/

Situation

# 想要更改hugo blog的小縮圖

Solution

# 更改custom.html,新增link
myblog > layouts > partials > head > custom.html
  <link rel="icon" type="image/png" href="{{ .Site.Params.favicon }}">

# 更改config.toml
[params]
  favicon = "/img/favicon.png"

# 放圖片
myblog > static > img > favicon.png

# 測試
hugo server -D