this post was submitted on 28 Oct 2024
36 points (97.4% liked)

Selfhosted

39824 readers
662 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi,

I'm interested in setting up a small static-site-generator site. Looked at 11ty recently and feel pretty uncomfortable with the amount of javascript and "funny language" churn just to make some html happen.

Do you know of any alternative that's simpler / easier / less complicated dependencies? Or do you have an approach to 11ty that you think I should try?

Thanks in advance for any input, it's appreciated!

top 14 comments
sorted by: hot top controversial new old
[–] richieadler@lemmy.myserv.one 1 points 6 minutes ago

My preference is Nikola.

[–] ikidd@lemmy.world 1 points 10 minutes ago

This might be what you're looking for: Zola

Single binary that lets you keep your markdown/config in git and just build it from the git clone folder you're in at the time.

I know some people that have moved off of Hugo to this, and Alex from the Selfhosted podcast recently talked about it on their show.

[–] pseudonym@monyet.cc 12 points 2 hours ago (1 children)

I use Hugo and I've been pretty happy with it. It has a lot of layout templates you can use out of the box so you don't need to learn a new templating language unless you want to do customizations. I write blogs in markdown and it's automatically rendered and published.

[–] bahbah23@lemmy.world 2 points 45 minutes ago

But as soon as you do want to customize it, you're stuck learning one of the most esoteric languages that wasn't meant as a joke.

[–] avid1@lemmy.world 5 points 1 hour ago

I like using Hugo at present

[–] bruhbeans@lemmy.ml 4 points 2 hours ago

https://getpublii.com/

It's a GUI app that runs on your local system and pushes sites to a server.

[–] variants@possumpat.io 3 points 2 hours ago* (last edited 2 hours ago) (2 children)

Have you checked out grav https://learn.getgrav.org/17/basics/what-is-grav

https://github.com/getgrav/grav

I use it just to make simple markdown sites for info like my gaming servers or if I feel like making a random blog post

[–] dudenas@slrpnk.net 3 points 1 hour ago

Technically Grav is not a static site generator, it is just a flat file cms. It means there is no need to generate all the files of website and upload them to server each time you write a post. I have no idea why people like static sites for blogging.

[–] exu@feditown.com 1 points 33 minutes ago

As the sibling comment says, not a static site generator. If you want to customize pretty much anything about the layout or theming you still need to use Twig, CSS and if you're unlucky JS.

[–] Hiko0 3 points 2 hours ago

Try Publii. It does everything for you. You can even set up the FTP upload.

[–] ctag@lemmy.sdf.org 3 points 2 hours ago (1 children)

I did try setting up 11ty, despite my misgivings over node.js. Using Markdown went OK, except it wouldn't render explicit tag parameters to allow me to do one-off formatting.

[–] shnizmuffin@lemmy.inbutts.lol 1 points 31 minutes ago

What templating languages do you know already, and are you running 11ty v3? There are some gotchas around images because (I think) the eleventy-image plugin is enabled by default.

I've found success running with .webc which is effectively HTML until you need it to be more.

Use Publii, it has a WYSIWYG editor, a block editor and a markdown editor. It creates the files on your PC and can upload it to your server. Just point your webserver to the uploaded folder.

Very beginner friendly ☝🏻

[–] sk@hub.utsukta.org 2 points 2 hours ago

I found pelican to be quite simple to start with and depending on how deep you want to go it can be quite customizable. Being proficient in python helps.