Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
webdev:eleventy [2025/08/12 04:56] – [Adding my own pages] scumsuck | webdev:eleventy [2025/08/13 02:52] (current) – scumsuck | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Eleventy ====== | ====== Eleventy ====== | ||
- | 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 it up. | + | 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 | ||
+ | |||
+ | [[https:// | ||
**Author' | **Author' | ||
Line 7: | Line 11: | ||
* I pay $15 for my domain name on Porkbun, but you don't need a domain name unless you want your url to look pretty. | * I pay $15 for my domain name on Porkbun, but you don't need a domain name unless you want your url to look pretty. | ||
* I have no idea what I'm doing. | * I have no idea what I'm doing. | ||
+ | * You should read [[https:// | ||
+ | * One of the frustrating things about SSGs that I've come across is that it simply will not build your site if you have a mistake in your HTML. Like if you spell sophi.png instaed of sophie.png, it will not even try to build the rest of the webpage. | ||
===== Set-up process ===== | ===== Set-up process ===== | ||
- Using this webcomic template: https:// | - Using this webcomic template: https:// | ||
- But the instructions are all in broken links, so you might have to look at this older file: https:// | - But the instructions are all in broken links, so you might have to look at this older file: https:// | ||
- | - Forked the template to my own github account. | + | - Forked the template to my own github account. |
- Opened up VScodium and " | - Opened up VScodium and " | ||
- Since I already had a rarebit formatted comic, I copied my img folder over. | - Since I already had a rarebit formatted comic, I copied my img folder over. | ||
Line 29: | Line 35: | ||
===== Editing the styling ===== | ===== Editing the styling ===== | ||
- Replace images like '' | - Replace images like '' | ||
+ | - This template has some sort of image processing plugin that absolutely destroys the quality of your images. | ||
Line 36: | Line 43: | ||
- Type '' | - Type '' | ||
- | - It should say '' | + | - It should say something similar to '' |
- Click on the button on the left bar that looks like 3 circles with veins. | - Click on the button on the left bar that looks like 3 circles with veins. | ||
- Press "Sync Changes" | - Press "Sync Changes" | ||
Line 61: | Line 68: | ||
- [[https:// | - [[https:// | ||
===== Commands ===== | ===== Commands ===== | ||
- | Run these in the terminal. | + | This is for my own reference because I will never remember this shit. |
* '' | * '' | ||
* '' | * '' |