Blonde
今までHugoのバージョンが新し過ぎて使えなかった。
しかし、テーマ2025年6月25日に更新され自分のバージョンのHugoでも使用できるようになった。
そこで、blondeを使用したがいくつが修正が必要だったので備忘録として以下つらつらと。
自分の環境
- Linux mint22
- hugo 0.147.0
- tailwindcss 4.1.11
変更点
- tailwindcssをv3に変更。
npm install で node_modules/.bin 以下に tailwindcss を作るためにはv3でないと駄目ということで。
Hugoの作業場ルートディレクトリで以下入力。
npm install -D tailwindcss@3.4.17
※2025年7月12日の時点のv3の最新バージョンは3.4.17
- tailwind.config.jsの変更
content: ["./**/*.html", "./**/*.md", "hugo.toml"],
↓
content: ["./**/*.html", "./**/*.md", "hugo.toml", "!./node_modules/**"],
- postcss.config.jsの変更
"@tailwindcss/postcss": {},
"autoprefixer": {},
↓
"tailwindcss": {},
"autoprefixer": {},
以上