General
CLI
- 更新 Go 與 Hugo
- cleanDestinationDir 編譯前先刪除 public 目錄
- renderToMemory 渲染到記憶體
- disableFastRender 全站渲染
- 建立 Hugo 開發 Bash Script
- 建立 Hugo 編譯 Bash Script
- Hugo 常用的 NPM Script
- 顯示 Hugo 編譯過的網站
Library
Feature
TOML
Go Template
- Go Template 簡介
- Dot 與 Page Object 與 Site Object 關係
- 使用 if else 處理 Truthy Value
- 在 Template 使用變數
- 使用 with 改變目前 Context
Variable
- Site Variable Overview
- Using Site Variables to Store Custom Data
- Using .Content to Access Markdown Content
- Using Hugo Variables with Alpine
CSS
Sass
JavaScript
Collection
Function
- Using .Param to access User-defined Variable
- Using default to Provide the Default Value
- Using humanize to Capitalize the String
- Using markdownify to transform Makrdown to HTML
- Using ref to Get Absolute Permalink
- Using relref to Get Relative Permalink
- Using range to Iterate over an Array
- Using range with JSON File
- 使用 pipe() 實現 Funtion Pipeline
- hugo.IsServer 判斷是否在開發階段
- hugo.IsDevelopment 判斷是否在開發環境