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!

Zola. Similar to Hugo, but newer and written in Rust.

https://www.getzola.org/

I used Zola for a while, but at the end of the day there wasnt enough themes available that fit what I was looking for. I ended up messing with the templating engine to get what I needed.

I suggest OP choose Hugo over Zola, in the hopes that they find a theme that suits them best and for the most part prevents them from having to touch templating to begin with.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
17d

Thanks!

@thagoat@lemmy.sdf.org
link
fedilink
English
118d

I think you might like hugo

It’s what I use for my blog

@moroni@lemmy.ca
link
fedilink
English
67d

Another deer!? 😱

@thagoat@lemmy.sdf.org
link
fedilink
English
15d

Lol yes another gd deer, just got the car back yesterday.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
37d

Thank you for the recommendation!

And best of luck with the repair. That’s a crazy bill estimate.

@Churbleyimyam@lemm.ee
link
fedilink
English
27d

Do you know if hugo blogs can federate?

@thagoat@lemmy.sdf.org
link
fedilink
English
37d

No, hugo does not federate.

@rsolva@lemmy.world
link
fedilink
English
1
edit-2
6d

It has RSS built-in, but since it is a static site generator, it does not support ActivityPub out of the box. But I do think I have seen implementations with some custom JavaScript.

Seconded. OP, if you can write Markdown, Hugo will turn it into a website.

@ikidd@lemmy.world
link
fedilink
English
108d

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.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
17d

Thank you for the recommendation! Zola looks promising.

@Hiko0@feddit.org
link
fedilink
English
88d

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

@ctag@lemmy.sdf.org
creator
link
fedilink
English
17d

Good to know. Thank you for the recommendation!

bruhbeans
link
fedilink
English
138d

https://getpublii.com/

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

@ctag@lemmy.sdf.org
creator
link
fedilink
English
27d

Thank you for the recommendation!

FarraigePlaisteach
link
fedilink
English
37d

I’m planning on porting my Wordpress site to this. I haven’t used it yet but based on what I’ve read it will be easier than Hugo.

@pseudonym@monyet.cc
link
fedilink
English
348d

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
link
fedilink
English
148d

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.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
47d

Thanks for the heads up. That feels like the same roadblock I got with 11ty. It ran OK on markdown, but one you dig into how wide the customizations go I couldn’t keep up.

I used Hugo for my portfolio site, and it’s great if you like an existing theme, but making one from scratch is a challenge. The documentation is unclear and there’s a chicken and egg problem about how to learn Hugo.

The go templating is OK, I prefer other syntax but it works.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
27d

Good to know. Thanks!

@ctag@lemmy.sdf.org
creator
link
fedilink
English
17d

Thanks for the recommendation. I’ll definitely take a look at Hugo.

https://www.sphinx-doc.org/ + https://pradyunsg.me/furo/ theme + https://myst-parser.readthedocs.io/ markdown parser + https://sphinx-design.readthedocs.io/ extensions.

Just drop all your markdown files in a directory and run sphinx-build. Highly customizable but also works out of the box

@GameGod@lemmy.ca
link
fedilink
English
25d

I want to second Pelican for Python. Really easy to set up and get going. No need to learn a complicated templating language (it’s jinja2, which is what everything uses).

@ctag@lemmy.sdf.org
creator
link
fedilink
English
25d

Thanks for the recommendation!

@filcuk@lemmy.zip
link
fedilink
English
46d

In case you’re familiar with Obsidian, there’s Quartz: quartz.jzhao.xyz/ Runs in docker too, practically zero config to start

@ctag@lemmy.sdf.org
creator
link
fedilink
English
16d

Thanks for the recommendation!

youmaynotknow
link
fedilink
English
38d

I’m looking for something similar that I can host in blue host, but all there is, apparently, is WordPress (hell no), joomla and drupal, and these are certainly not static.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
37d

That’s like the OG crew of web content haha. I used to be pretty big on Wordpress, but then two of my sites got compromised (through a plugin probably?), and of course the recent kerfluffle going on.

fmstrat
link
fedilink
English
37d

Docusaurus. It’s all markdown.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
16d

Will give that a look, thanks!

@lefaucet@slrpnk.net
link
fedilink
English
3
edit-2
7d

Thanks for the rec! Looks awesome; Imma try it :)

https://docusaurus.io/

@lefaucet@slrpnk.net
link
fedilink
English
37d

Oof. Meta open source. Srsly sus. •͡˘㇁•͡˘

JackbyDev
link
fedilink
English
37d
@ctag@lemmy.sdf.org
creator
link
fedilink
English
16d

Neat, thanks!

@ctag@lemmy.sdf.org
creator
link
fedilink
English
48d

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

shnizmuffin
link
fedilink
English
18d

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.

@ctag@lemmy.sdf.org
creator
link
fedilink
English
17d

Thank you for the advice! I’ll give webc a look before I check out the alternative platforms.

I don’t know or really want to learn anything other than html/css or markdown. The site I’m trying to migrate was raw html/css, and I liked it well enough even though the shortcomings (and argument for template stuff) is very obvious.

shnizmuffin
link
fedilink
English
17d

Using the template syntax you can start by copy/pasting the site to be migrated, and then inject sections that render using markdown syntax.

@Evotech@lemmy.world
link
fedilink
English
-3
edit-2
6d

deleted by creator

arsCynic
link
fedilink
English
2
edit-2
7d

Codeberg Pages if you don’t mind a give-or-take weekly 30 min downtime. GitHub Pages if you do. GitLab Pages if you have a creditcard which they require to verify your identity.

@hedy@lemmy.sdf.org
link
fedilink
English
16d

I recently switched to Codeberg Pages and it’s the first time I’m hearing about a weekly downtime. Is there somewhere this is documented or I can read more about it?

arsCynic
link
fedilink
English
1
edit-2
5h

“Honestly, I am completely unsure how to proceed with the pages server.
It might be the best idea to deprecate it.

Create a post

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!

  • 1 user online
  • 125 users / day
  • 420 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog