DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

What's the easiest way to create a content based static website

I guess a truly easiest way as well as maintainable, is Awesome GitHub repos kind; but what are alternatives?

Top comments (12)

Collapse
 
vinaypai profile image
Vinay Pai

I just started rebuilding my personal site after years of procrastination and settled on Hugo. It's lightening-fast and supports all the things I want from a static site generator including image resizing, themes etc. Hugo is written in Go, but they have pre-built binaries for most platforms so you don't have to install Go to use it.

Collapse
 
eitchtee profile image
Herculino Trotta • Edited

Quite happy with Github Pages with Jekyll.
Plenty of themes and resources, allows Markdown posts, and Github supports it out of the box.

I've used it to build my website.

Collapse
 
arturssmirnovs profile image
Arturs Smirnovs

I have heard about them:
heroku.com/home
netlify.com/

Haven't used them, because find GitHub repos good enough for my needs for static sites.

Maybe somebody can explain more about them or check them out ;)

Collapse
 
ndsn profile image
Tom Anderson • Edited

I would honestly suggest taking a look at Eleventy! πŸ‘

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

But any static website builder will require me to maintain CSS as well, unlike writing solely in Markdown.

Unless there is a truly perfect readymade theme...

Collapse
 
ndsn profile image
Tom Anderson • Edited

Very true. CSS is one of those things that I've yet to find a perfect solution for.

The best answer I can offer for full flexibility while following the KISS Principle as close as possible would be to use something like TailwindCSS baked into your 11ty layouts so that the pure markdown posts (used as 'data' by 11ty) inherits the styling from the templates.

Plus, you could always just take an existing HTML Template/Theme and use that as your base layout augment it with data from the markdown files.

Collapse
 
katafrakt profile image
PaweΕ‚ ŚwiΔ…tkowski

But that's true for everything. Is GitHub theme perfect when you host awesome repos? With your own website at least you have a possibility to tune the theme. And it won't change without your consent.

Collapse
 
mattcale profile image
Matthew Cale

Surge.sh is a splendid tool :)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I only know surge.sh as a deployment tool. Too easy to deploy that I quitted it, and use Netlify instead.

Collapse
 
mattcale profile image
Matthew Cale

Netlify is also a great tool for deploying static sites! Sorry, I should have been more precise in my original comment. Surge.sh is a very easy way to deploy a static site. Not create one. My apologies πŸ™‡β€β™‚οΈ

Collapse
 
amlana24 profile image
amlan • Edited

You can try Gatsby..I built my blog with it..
amlanscloud.com

Collapse
 
louy2 profile image
Yufan Lou • Edited

Publii - Open-Source CMS for Static Site

CMS GUI + static site generator, with built-in styling templates.