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!

  • @pseudonym@monyet.cc
    link
    fedilink
    English
    3424 days ago

    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
      1423 days 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.

      • @ctagOP
        link
        English
        423 days ago

        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.

    • @DichotoDeezNutz@lemmy.world
      link
      fedilink
      English
      623 days ago

      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.

      • @ctagOP
        link
        English
        223 days ago

        Good to know. Thanks!

    • @ctagOP
      link
      English
      123 days ago

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

    • @rutrum@lm.paradisus.day
      link
      fedilink
      English
      623 days ago

      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.

    • @ctagOP
      link
      English
      123 days ago

      Thanks!

    • FarraigePlaisteach
      link
      fedilink
      English
      323 days ago

      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.

    • @ctagOP
      link
      English
      223 days ago

      Thank you for the recommendation!

  • @thagoat
    link
    English
    1123 days ago

    I think you might like hugo

    It’s what I use for my blog

      • @thagoat
        link
        English
        121 days ago

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

    • @ctagOP
      link
      English
      323 days ago

      Thank you for the recommendation!

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

      • @thagoat
        link
        English
        323 days ago

        No, hugo does not federate.

      • @rsolva@lemmy.world
        link
        fedilink
        English
        1
        edit-2
        22 days ago

        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.

  • @ikidd@lemmy.world
    link
    fedilink
    English
    1023 days 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.

    • @ctagOP
      link
      English
      123 days ago

      Thank you for the recommendation! Zola looks promising.

    • @ctagOP
      link
      English
      123 days ago

      Good to know. Thank you for the recommendation!

  • SK
    link
    fedilink
    624 days 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.

    • @ctagOP
      link
      English
      123 days ago

      That looks neat. Thanks!

    • @ctagOP
      link
      English
      223 days ago

      Thanks for the recommendation!

  • Morethanevil
    link
    fedilink
    English
    624 days ago

    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 ☝🏻

    • @ctagOP
      link
      English
      223 days ago

      Thanks for the recommendation!

  • @xavier666@lemm.ee
    link
    fedilink
    English
    423 days ago

    I think mkdocs is easier than hugo but less flexible in terms of capability. However it serves all my needs (list of webpages accessible from a central frontpage)

    • @ctagOP
      link
      English
      122 days ago

      Thanks!

  • @filcuk@lemmy.zip
    link
    fedilink
    English
    422 days ago

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

    • @ctagOP
      link
      English
      122 days ago

      Thanks for the recommendation!

    • @dudenas@slrpnk.net
      link
      fedilink
      English
      423 days 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
      link
      fedilink
      English
      323 days 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.

    • @ctagOP
      link
      English
      223 days ago

      Thanks for the recommendation. I actually did look at grav a while back, but I can’t recall why I moved on. Will give it another pass.

  • @ctagOP
    link
    English
    424 days ago

    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
      123 days 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.

      • @ctagOP
        link
        English
        123 days ago

        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
          123 days 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.

    • @ctagOP
      link
      English
      122 days ago

      Neat, thanks!

    • @ctagOP
      link
      English
      223 days ago

      Thank you for the recommendation!