Absolutely minimal Hugo static site

Published: Monday, Sep 28, 2020 Last modified: Sunday, Mar 2, 2025

❯ cat ntest-site.sh
hugo version
hugo new site ${1:-"testing"}
cd ${1:-"testing"}
mkdir layouts/_default
echo -e "<h1>Hello from layouts</h1>\n{{ .Content }}" > layouts/_default/single.html
mkdir content/foo
echo "# Hello from foo" > content/foo/index.md
hugo --disableKinds=taxonomy,RSS,sitemap

Then hugo serve and curl http://localhost:1313/foo/