I'm trying to build a basic landing page on GitHub pages using Hugo (version 0.44) and the hugo-sustain
theme. But I struggle to understand how to organise content with Hugo.
This is the basic example site from the hugo-sustain
theme:
exampleSite
├── config.toml
├── content
│ ├── projects.md
│ └── blog
│ ├── creating-a-new-theme.md
│ ├── go-is-for-lovers.md
│ ├── hugo-is-for-lovers.md
│ └── migrate-from-jekyll.md
├── data
│ └── projects.yml
└── static
Now I'd like a nice projects page, where I have images and/or text.
But with the hugo-sustain
theme the actual text content and the project's descriptions are in the projects.yml
file. But not in the projects.md
as I'd have expected.
That means it will be a lot harder to encode content that will nicely compile as a static page.
I have found this workaround with getting static pages set up following this post. But is that really the best-practice approach? It feels quite messy and involved for just one simple page.