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:47] – [Eleventy] 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 25: | Line 31: | ||
- I replaced the " | - I replaced the " | ||
- The alt text is finicky as always. | - The alt text is finicky as always. | ||
- | - Wow! It just works! | + | - Wow! It just works! |
===== 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. | ||
+ | - Press "Sync Changes" | ||
+ | - Visit your repository on github to see if it synced everything over. It should say something like " | ||
- Log into Vercel. | - Log into Vercel. | ||
- Click the top-right button that says '' | - Click the top-right button that says '' | ||
Line 54: | Line 64: | ||
- Save your work. | - Save your work. | ||
- Go back to the Vercel Domains page. It will probably say " | - Go back to the Vercel Domains page. It will probably say " | ||
+ | - Wait then refresh the page. It took me a couple minutes. | ||
+ | - Click on your domain name. | ||
+ | - [[https:// | ||
===== Commands ===== | ===== Commands ===== | ||
- | Run these in the terminal. | + | This is for my own reference because I will never remember this shit. |
- | '' | + | * '' |
+ | * '' |