this post was submitted on 28 Oct 2024
153 points (98.7% liked)

Selfhosted

61594 readers
1099 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years 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!

you are viewing a single comment's thread
view the rest of the comments
[–] ctag@lemmy.sdf.org 4 points 2 years 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 2 years ago (1 children)

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 1 points 2 years ago (1 children)

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@lemmy.inbutts.lol 1 points 2 years ago

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