Post AEb85Yp8i0lpvuDWDY by mwt@econresearch.org
 (DIR) More posts by mwt@econresearch.org
 (DIR) Post #AEanejhe9ctulvdzXM by kev@fosstodon.org
       2021-12-20T10:38:00Z
       
       0 likes, 0 repeats
       
       Gah, I’ve been having lots of issues with #Jekyll on my M1 Mac. Cannot for the life of me get the site to build, or the local server to run. Something is wonky with Ruby on the M1.I may just switch to #Eleventy.Anyone done this? Much work involved? They seem much more similar than Jekyll and #Hugo.
       
 (DIR) Post #AEansYSMlUtNwi5OCW by robert@social.winter.ink
       2021-12-20T10:40:00Z
       
       0 likes, 0 repeats
       
       @kev Any reason for not using Hugo?
       
 (DIR) Post #AEapBZsxmBkJpmA3Wa by obsolete29@indieweb.social
       2021-12-20T10:55:09Z
       
       0 likes, 0 repeats
       
       @kev I've never migrated between there two but I use Eleventy for my site for whatever that's worth..😎
       
 (DIR) Post #AEasmg2o8mLxVp9EES by joeligj12@fosstodon.org
       2021-12-20T11:35:27Z
       
       0 likes, 0 repeats
       
       @kev are you using bundle? I think you know more than I do, but I found myself unable to build jekyll a few weeks ago and managed to get ot back.I think Eleventy requires some pretty different stuff, but I am not sure, havent tried it
       
 (DIR) Post #AEatb7ROYT1sxbhWC0 by mike@fosstodon.org
       2021-12-20T11:44:37Z
       
       0 likes, 0 repeats
       
       @kev Have you repeated the mantra enough times?"It just works.""It just works.""It just works."
       
 (DIR) Post #AEay9BQgdDWgzdrt20 by kev@fosstodon.org
       2021-12-20T12:35:36Z
       
       0 likes, 0 repeats
       
       @robert nothing against Hugo, reading the documentation of both it seems that 11ty is much closer to jekyll in terms of functionality than Hugo.
       
 (DIR) Post #AEayHdWU43W0RMbuoi by kev@fosstodon.org
       2021-12-20T12:37:01Z
       
       0 likes, 0 repeats
       
       @david hmmm yeah, there’s an idea. As a work around for now I’m just using dev branch previews on Netlify, but it burns through my build minutes.
       
 (DIR) Post #AEayNJlYQuiqu2MvB2 by kev@fosstodon.org
       2021-12-20T12:38:07Z
       
       0 likes, 0 repeats
       
       @joeligj12 yeah, using bundle. Oh yeah 11ty is a completely different tech stack (JS) but it’s source code make up seems very similar, and both support Liquid.
       
 (DIR) Post #AEayVBMxXH0fB4cAam by mwt@econresearch.org
       2021-12-20T11:58:48.628851Z
       
       0 likes, 0 repeats
       
       @joeligj12 @kev I haven't actually done the migration, but I've been thinking about it for a while. 11ty supports liquid, and someone ported the jekyll-specific liquid tags to 11ty. If you don't use any plugins, I think it should be very easy.My issue is that I use quite a few Jekyll plugins.
       
 (DIR) Post #AEayVBntv6YoWdDgaO by kev@fosstodon.org
       2021-12-20T12:39:28Z
       
       0 likes, 0 repeats
       
       @mwt @joeligj12 oh, i didnt know someone did that. Do you have a link to the documentation for that please?I only use a couple of plugins, so I’m hoping it won’t be _that_ difficult.
       
 (DIR) Post #AEayYnPAZnsI0nN68W by kev@fosstodon.org
       2021-12-20T12:39:56Z
       
       0 likes, 0 repeats
       
       @mike 😂😂😂 i must be using it wrong!
       
 (DIR) Post #AEazafIhmLfNPUnqqW by celia@fosstodon.org
       2021-12-20T12:51:42Z
       
       0 likes, 0 repeats
       
       @kev Eleventy is reaching a 1.0 release so this is a good time. I had my (very pretty) static site in it with good success. A lot of edge cases should be ironed out by now and you *shouldddd* have a better time than me lol.Though I don’t know how you’re managing 100s of files to begin with.
       
 (DIR) Post #AEazeMy5sdqDiAvdeS by celia@fosstodon.org
       2021-12-20T12:52:24Z
       
       0 likes, 0 repeats
       
       @kev Eleventy is reaching a 1.0 release so this is a good time. I had my (very pretty) static site on it with good success. A lot of edge cases should be ironed out by now and you *shouldddd* have a better time than me lol.Though I don’t know how you’re managing 100s of files to begin with in any static site system at all
       
 (DIR) Post #AEazv07e4f5FmMKKB6 by kev@fosstodon.org
       2021-12-20T12:55:23Z
       
       0 likes, 0 repeats
       
       @celia > I don’t know how you’re managing 100s off filesThe search feature in Atom is very good. 😊 It’s actually not that bad. Media is somewhat of a pain, but I’m getting used to it now.
       
 (DIR) Post #AEb1LfSz51NFUNaU76 by hund@fosstodon.org
       2021-12-20T13:10:35Z
       
       0 likes, 0 repeats
       
       @kev What kind of issues? Show me.
       
 (DIR) Post #AEb85Yp8i0lpvuDWDY by mwt@econresearch.org
       2021-12-20T13:46:29.895979Z
       
       0 likes, 0 repeats
       
       @kev @joeligj12 I saw them in this guide. I think there might be a few more Jekyll specific liquid functions, but eg `relative_url` would be easy to add based on this template. https://kittygiraudel.com/2020/11/30/from-jekyll-to-11ty/#jekyll-filters
       
 (DIR) Post #AEb85ZIYwcJ3P9z14y by kev@fosstodon.org
       2021-12-20T14:26:57Z
       
       0 likes, 0 repeats
       
       @mwt @joeligj12 things!
       
 (DIR) Post #AEb86vPCEjWYG3jV56 by kev@fosstodon.org
       2021-12-20T14:27:10Z
       
       0 likes, 0 repeats
       
       @mwt @joeligj12 thanks!
       
 (DIR) Post #AEb8QXGjgXHZBx7uiW by kev@fosstodon.org
       2021-12-20T14:30:42Z
       
       0 likes, 0 repeats
       
       @hund not at my machine at the moment, I’ll dump the output into a Pastbin when I’m at my machine.
       
 (DIR) Post #AEb9tzGQmM3MMwajR2 by kev@fosstodon.org
       2021-12-20T14:47:13Z
       
       0 likes, 0 repeats
       
       @hund here you go - https://pastebin.com/S67XX2yHTried reinstalling all my gems and I get an error with event machine:An error occurred while installing eventmachine (1.2.7), andBundler cannot continue.In Gemfile:  jekyll-category-pages was resolved to 1.1.2, which depends on    jekyll was resolved to 4.2.1, which depends on      em-websocket was resolved to 0.5.3, which depends on        eventmachine
       
 (DIR) Post #AEbD82oIgrn7HgpPhA by hund@fosstodon.org
       2021-12-20T15:23:19Z
       
       0 likes, 0 repeats
       
       @kev Right. You're using that ARM thingy. Try this: https://betterprogramming.pub/ruby-on-apple-silicon-m1-macs-fb159849b2f5.
       
 (DIR) Post #AEbDOD9Y0K9pzkTWvQ by kev@fosstodon.org
       2021-12-20T15:26:20Z
       
       0 likes, 0 repeats
       
       @hund I managed t0 fix the issue after someone reached out via email and provided me with the solution.
       
 (DIR) Post #AEbEm0ovbkiOeNkBO4 by hund@fosstodon.org
       2021-12-20T15:41:47Z
       
       0 likes, 0 repeats
       
       @kev Great! :)
       
 (DIR) Post #AEbHrWj8htPKuwMDtA by binyamin@mas.to
       2021-12-20T16:16:15Z
       
       0 likes, 0 repeats
       
       @kev I think this problem is intrinsic to all SSGs. It comes down to the question of "which software would I rather debug".I'm more familiar with JavaScript, so I chose Eleventy. The trade-off is that it's newer, plus the codebase is (imho) a bit messy.All software have bugs. All software have dependencies, which also have bugs. Basically, it's like switching to a new Linux distribution 😛
       
 (DIR) Post #AEbI6E6MEqHRUlE83c by kev@fosstodon.org
       2021-12-20T16:19:06Z
       
       0 likes, 0 repeats
       
       Managed to get I fixed after someone reached out via email and helped. 😊Still thinking about moving though, as Ruby has all kinds of problems on the M1.
       
 (DIR) Post #AEbIEYghaDwzeuCRLU by kev@fosstodon.org
       2021-12-20T16:20:01Z
       
       0 likes, 0 repeats
       
       @binyamin speak sent Eleventy a single binary though? So I assumed it would be easier to maintain than Ruby and a tonne of a gems.
       
 (DIR) Post #AEbJvYD1L4Kua2Netc by binyamin@mas.to
       2021-12-20T16:39:20Z
       
       0 likes, 0 repeats
       
       @kevWhere do you get 11ty as a single binary? I've never seen that before. Also, even with Eleventy, I usually end up with plenty of NPM dependencies for plugins.If you want a simple SSG which is a single binary, I'd recommend zola (https://www.getzola.org/). My only gripes are that, as of now, there's no support dart-sass and no plugin functionality.
       
 (DIR) Post #AEbRTbddnJDCk11Ajg by murtezayesil@fosstodon.org
       2021-12-20T18:04:03Z
       
       0 likes, 0 repeats
       
       @kev You should build and serve in a docker container. Unlike on Linux, Windows and Mac versions run a Linux VM but it just works nontheless.@mike
       
 (DIR) Post #AEbRY4otExnaP7PZE8 by tomdeb@fosstodon.org
       2021-12-20T18:04:56Z
       
       0 likes, 0 repeats
       
       @kev any excuse
       
 (DIR) Post #AEbT6zhYMVNAcTC3Y8 by kev@fosstodon.org
       2021-12-20T18:22:30Z
       
       0 likes, 0 repeats
       
       @tomdeb I’m actually really happy with Jekyll. @david mentioned rubbing it on my Syno, so I might just do that actually.
       
 (DIR) Post #AEbVOUloIoXboBepgO by kev@fosstodon.org
       2021-12-20T18:47:38Z
       
       0 likes, 0 repeats
       
       @murtezayesil I’m not sure id want the complexity of managing a docker container  @mike
       
 (DIR) Post #AEbh6vubqjxuE1AJsW by kennethdodrill@fosstodon.org
       2021-12-20T20:59:21Z
       
       0 likes, 0 repeats
       
       @kev Glad you got it fixed. I have switched from Hugo to Zola before. I didn't have too many issues with Hugo (and kinda want to switch back), but Zola is super fast and works fine. I just had to change the front matter to match it's templating engine. https://www.getzola.org/
       
 (DIR) Post #AEbnfnooX4B2z4St5k by adamsdesk@mastodon.technology
       2021-12-20T22:12:40Z
       
       0 likes, 0 repeats
       
       @kev I would strongly suggest using Podman or Docker image to use a SSG. This will simplify and automate the devlopment environment to avoid such issues you are having.https://hub.docker.com/u/jekyll/
       
 (DIR) Post #AEbsyIiIu5gVmp3m5o by kev@fosstodon.org
       2021-12-20T23:12:09Z
       
       0 likes, 0 repeats
       
       @adamsdesk docker is a dark art to me. I find it so overly complicated. On the repo is says the following under “usage”export JEKYLL_VERSION=3.8docker run --rm \  --volume="$PWD:/srv/jekyll" \  -it jekyll/jekyll:$JEKYLL_VERSION \  jekyll buildThat means absolutely nothing to me. Like, it’s utter gibberish. Is that a command I paste in? Do I enter this info into a config file? I’d much rather stick to a local application than have to dance around all this nonsense.
       
 (DIR) Post #AEbt2P09T2sqRjMcAy by kev@fosstodon.org
       2021-12-20T23:12:39Z
       
       0 likes, 0 repeats
       
       @kennethdodrill I thought Hugo was widely regarded as the fastest?
       
 (DIR) Post #AEbwsv0U17v4d7FgmW by jayemach@fosstodon.org
       2021-12-20T23:55:18Z
       
       0 likes, 0 repeats
       
       @kev @adamsdesk It's technically 2 commands, the export line sets an environment variable and the rest is the command to run the Docker image. It's just a bit overwhelming to look at because the \ are only there as line breaks to make it easier for humans to read the separate options being passed.I find Docker Compose to be easier because you write a config file once and it handles setting up all of the options for you instead of having to include them in the run command.
       
 (DIR) Post #AEcvsrNxZkbybPbLMG by jayemach@fosstodon.org
       2021-12-20T23:59:32Z
       
       0 likes, 0 repeats
       
       @kev @adamsdesk I do wish the Docker pages would be more clear on steps involved, though. It's one of those things where you're expected to know how to use it but they don't tell you where to start to learn how to use it 🤦🏻‍♂️
       
 (DIR) Post #AEcvsrlMAlKJlyY1pI by kev@fosstodon.org
       2021-12-21T11:19:37Z
       
       0 likes, 0 repeats
       
       @jayemach @adamsdesk thanks both. I wasn't expecting support on how to do it by the way - this was just an example of how inept I am when it comes to Docker. 😂 I've done a bit of reading and got it working relatively easily actually. It's slow to mount and build (a couple of minutes all told) but if it means I don't have to mess around with the Ruby stack, and more importantly, I don't have to migrate my site AGAIN, it's a winner.Thanks both, appreciate the help/advice.
       
 (DIR) Post #AEdAFGqmycW7JGfNAW by kennethdodrill@fosstodon.org
       2021-12-21T14:00:29Z
       
       0 likes, 0 repeats
       
       @kev I would guess it depends on your website but I'm honestly not sure. I would have to check out performance tests. I mostly switched to Zola because I was all about Rust at that point (no longer am) and I was having issues with getting Sass to compile right with Hugo (I believe it was a problem with my distros packaging though).
       
 (DIR) Post #AEdBeXIr2jUhWxPB0i by jason123santa@fosstodon.org
       2021-12-21T14:15:52Z
       
       0 likes, 0 repeats
       
       @kev With all of the talk about these SSGs with all these features and different languages I was using Hugo and found it to have to Mich  feature's that make it more complicated then it should of been for what I was doing. Just generate a blog with the correct links and an RSS feed. Ended up switching to bloop because its just a bash script that takes some html and css files along with a config and generates the static html files.
       
 (DIR) Post #AEdj9VIFrV5ElJUz6u by adamsdesk@mastodon.technology
       2021-12-21T20:31:39Z
       
       0 likes, 0 repeats
       
       @kev Oh okay, sorry I just gave a very generalized response seeing I didn't know if you were aware or using Podman or Docker. I plan in the future to write up some material to help in this area for someone like yourself to get a better understanding of using containers.
       
 (DIR) Post #AEeqzPWFiQioi6kTJ2 by murtezayesil@fosstodon.org
       2021-12-22T09:34:12Z
       
       0 likes, 0 repeats
       
       If it is a Mac issue and building the site on Linux is easier, use a disposable docker image:$ docker run -it --rm -p 8080:4000 -v <full path to your site source code in local storage>:/mysite ubuntu:20.04 bashNow you should be in a Ubuntu VM. Install Ruby, jekyll etc tgen build and and host your site. Differences are that you will appear as root and site will be in /mysite dir.Locally hosted site will be on localhost:8080 (according to jekyll docs)@kev @mike
       
 (DIR) Post #AEerJrnSI3uECeY7A8 by murtezayesil@fosstodon.org
       2021-12-22T09:38:03Z
       
       0 likes, 0 repeats
       
       Note that I am new to Docker and learning it as part of my course. Docker command I wrote should be correct but I didn't test it.Alternatively to using ubuntu container and installing Jekyll everytime, you may be able to find a Jekyll container which would remove the need for installing jekyll in Ubuntu container.@kev @mike
       
 (DIR) Post #AEmFxQ7qLeL8yLCNFI by jla@fosstodon.org
       2021-12-25T23:16:57Z
       
       0 likes, 0 repeats
       
       @kev well,  umh... good question, while i still admire versatile and simple Jekyll capabilites, moved to Hugo mainly because of professional/project reasons. On top if, it's faster (runs on a Binary) and easier to setup a golang env. than a ruby one. Less prone to issues.  And  #Hugo has a very vibrant community, BTW .