- can be hosted as GitHub Pages
- simple-ish to setup and to create posts
- an RSS feed would be very nice
@justvanrossum Eleventy reminds me of Robofont in that it doesn’t force you to do things a certain way or make a lot of assumptions. Very easily extensible and lots of great plugins. I just added RSS to my site and it was very simple.
My site is connected to a git repo and it’s hosted by Netlify on their free tier, works great
@justvanrossum Hmm, I started by building everything in html and css and then copy/pasting things into template pages as needed. My templating was based on this boilerplate site: https://github.com/danurbanowicz/eleventy-netlify-boilerplate/
Most of my site templating happens in base.njk (from _includes/layouts/) and the <head> is included like this: {% include "components/head.njk" %}
which references head.njk (from _includes/components/) where I copy/pasted the <head> from my html file. Hope that helps!
@justvanrossum If it's an SVG it could in theory be pasted inline, right?
Or for the normal way of linking to an image, I have this code in my eleventy config file: eleventyConfig.addPassthroughCopy("images");
(It might need to be"./images" depending on your setup). Then whatever I put in the "images" folder in my base directory will get copied into my "_site/images/" folder when the site is built.
Config file:
https://github.com/11ty/eleventy-base-blog/blob/main/eleventy.config.js
addPassthroughCopy info:
https://www.11ty.dev/docs/copy/
@cjtype Thanks!
In that config file /public/ is already pass through, and when I place an image in /public/img/ I do see that it gets included the output tree (https://blog.fontra.xyz/img/fontra-icon.svg), however, I can't seem to find how to *reference* that image correctly in _includes/layouts
/base.njk. https://github.com/11ty/eleventy-base-blog/issues/200
@justvanrossum
Many of the static site generator blog engines can do this. Hugo is popular. I used Python based nikola for years, which does this, and switched to zola last year, which also works like that. Jekyll you already mentioned.
You have them written in lots of programming languages. I think in part because one cognitive pitfall for programmers who want to write a blog is to get sidetracked to write their own engine "first".
@justvanrossum
Ahh, I haven't done github pages myself.
Apparently Jekyll is the default for those so that might be simplest.
Zola has docs but I imagine most of them do, still maybe it will help:
https://www.getzola.org/documentation/deployment/github-pages/
Implementation of your own blog tends to involve an intense period of endless tinkering plus conversion of your old entries if you have those...
@justvanrossum I'm pretty satisfied with hugo. It got a guide for Github pages deployment: https://gohugo.io/hosting-and-deployment/hosting-on-github/
Setup for getting started is also simple-ish if you go with default templates.
Customizing templates requires HTML/CSS skills and learning a bit about the go template system used.
@justvanrossum you can do that with Pelican: the Python-based static site generator created by Justin Mayer 🐍
Here the docs to publish as GitHub pages 👇
https://docs.getpelican.com/en/latest/tips.html#publishing-to-github-pages-using-a-custom-github-actions-workflow
#Python #Pelican #SSG #Static #Pages #GitHub
CC @justin
@paulox Indeed, those docs should make it straightforward to set up a Pelican-powered site hosted via GitHub Pages.
@justvanrossum: Let me know if I can be of any assistance!
@justvanrossum how simple do you want? Because unk is just 30LOC of bash and awk and my fork gives you RSS:
Very happy with https://getpelican.com/