Model the Data, Not the Interface
How a simple YAML data model let me add a client-facing CMS without touching the existing implementation.
HugoでContent Typeをフィルタリング表示する
ブログを始めるにあたり、とりあえず免責事項の記事を書いてみた。 Hugoを立ち上げると、何やらブログトップの “Latest Essays” に “免責事項” の文字が…(ついでに “About” も)。 これはかっこ悪い。ということで、 “Latest Essays” として表示される記事のContent Typeを制限することにした。