If I want to use Hugo to create a custom html page is it required that I use a theme for that purpose?
If I donβt have to use a theme, how would I create that? Is there a specific generic hugo.toml for that purpose?
If I want to use Hugo to create a custom html page is it required that I use a theme for that purpose?
If I donβt have to use a theme, how would I create that? Is there a specific generic hugo.toml for that purpose?
No, you do not have to use a theme. You can work directly in the root and skip building a theme.
I would suggest you start there.
No you donβt need a theme.
to generate a basic (starter) site with a minimal example config and some layouts and content that can be viewed directly.
hugo new theme --themesDir . my-new-site
cd my-new-site
hugo server
my-new-site
β hugo.toml
β
ββββarchetypes
β default.md
β
ββββassets
β ββββcss
β β β main.css
β β β
β β ββββcomponents
β β footer.css
β β header.css
β β
β ββββjs
β main.js
β
ββββcontent
β β _index.md
β β
β ββββposts
β β post-1.md
β β post-2.md
β β _index.md
β β
β ββββpost-3
β bryce-canyon.jpg
β index.md
β
ββββdata
ββββi18n
ββββlayouts
β β baseof.html
β β home.html
β β page.html
β β section.html
β β taxonomy.html
β β term.html
β β
β ββββ_partials
β β footer.html
β β head.html
β β header.html
β β menu.html
β β terms.html
β β
β ββββhead
β css.html
β js.html
β
ββββstatic
favicon.ico
you will find a lot of guides around describing how to set up a Hugo site from scratch
Thanks for the response
So, working through the steps now and seeing the structure, since I donβt want a blog site and just a static site that may, or may not, have just one static page, I can make the changes in the hugo.toml to reflect that?
Out of curiosity. If you just want to make a single static page. Why not just skip all tools and make it plain html and css?
there is nothing in the config that tells βthis is a blogβ
itβs all about Content organization.
a singe page: only index.md in your content folder
a site with multiple pages: _index.md and more md files lalso in subdirectories name the folders to your need.
Funny you should mentioned it. A bit after my last post, that occurred to me. I was overthinking it. I bypassed Hugo and just went the basic route.