this post was submitted on 19 Feb 2024
3 points (100.0% liked)

Programming

17024 readers
291 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

Hey, just wanted to drop this here. It's a technical follow-up to The Unreasonable Effectiveness of Static Sites which was reasonably popular, and explains the components of a static site's stack.

top 5 comments
sorted by: hot top controversial new old
[–] BangersAndMash@lemmy.world 0 points 7 months ago (1 children)

Just last week I decided to try a different tech than I'm used to to run up a site. I did a little research then searched GitHub and found Hugo. I read the Hugo docs, followed their beginners guide and... Didn't get fucking anywhere. Their docs are out of date, the examples are out of date. It looked so promising but my brain works best when referencing examples and when I couldn't even get those to work, well, I don't have time for that these days.

If anyone knows another static site generator with up to date documentation and an easy to run up example please let me know.

[–] oftencurious@programming.dev 1 points 7 months ago

Hexo has been working great for me. I found the documentation great as well.

[–] Sir_Kevin@lemmy.dbzer0.com 0 points 7 months ago (1 children)

I must sound like an old fossil but I just use windows notepad to build any basic sites that don't need like a shopping cart or anything complex.

[–] Lmaydev@programming.dev 1 points 6 months ago (1 children)

The advantage of static site generators is you have your template and it's filled by the data for each page. It's generally very simple and intuitive.

The problem with doing it your way is if you need to change a common element you have to edit every page. Instead of just changing the template.

Markdown to html just works so well as all your pages are structured the same.

[–] Sir_Kevin@lemmy.dbzer0.com 2 points 6 months ago

I use PHP to generate anything repetitive. With that and CSS it's pretty easy to make site wide changes.