I am learning how to use Eleventy, also known as 11ty. That is a SSG. It should make building your website easier if you want every page to have the same template.
I'll write here how I set a pre-made template up for my webcomic, Just Gorly Things, to make it easier to update and faster to load than my current .js template Rarebit.
This test page is my final result.
Author's notes:
npm install @11ty/eleventy
in the command line to make it install a bunch of shit.npm audit fix
cuz it told me to fix it and it was important.npx @11ty/eleventy --serve
in the command line, it gave me the local host url of http://localhost:blah/.comic_settings.js
.:
or “
. So keep it simple.favicon.png
and logo.png
with your own images.eleventy.config.js
and underneath eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
, I added formats: [“auto”],
so it didn't convert to ugly crusty webps. Sorry I already optimize my images for web??? You may need to refresh your localhost server to see the changes.If you use Neocities, the template page has instructions for you on there. What I do may or may not be relevant to you.
npx @11ty/eleventy
into the command line to write all the gay files.[11ty] Copied 168 Wrote 13 files in 3.75 seconds (288.2ms each, v3.1.2)
to confirm it did it correctly. Hopefully there are no error messages.This is so you have a pretty URL. I'm using Porkbun to own scumsuck.com.
This is for my own reference because I will never remember this shit. Run these in the terminal. I'm using VScodium, this option is ctrl+shift+`
npx @11ty/eleventy --serve
: live previewnpx @11ty/eleventy
: run eleventy and make all those gay files for you to upload.