I should have made this post sooner but i kinda forgot to TwT

Anyways, i have, again, re-made my website from zero, this time back to hand made HTML.

I wanted to make a "indie web" style website. Something that kinda looks like old websites, but still looks cool.

How i made it

So i didn't start from nothing, i used a template instead, made with this :

layout generator
Read about the generator (features, changelog, credits, ...), suggest features or ask for help on this page.
https://petrapixel.neocities.org/layout-generator/

This thingy made by Petrapixel allows you to select stuff like colors, pre-made UI, navigation, etc

I really like this template because it has a system where stuff that you want on all pages doesn't need to be re-written each time

There is a file named layout.js which is loaded on every page, and the code for stuff like the navigation bar, sidebar etc is in this, and it injects it in every page !

So my index.html page only contains stuff like meta tags for favicon, title, etc, then a link to the CSS file and layout.js, then the content specific to the page.

And for locally testing the website, the Firefox DevTools Local Mode was pretty useful !

It allows the website to have a domain just like if were published, instead of being a file:// URL.

This is very useful, because for example, look at this :

<!-- FavIcon (small image in tab), change to any image you want: -->
<link href="/favicon.ico" rel="icon" type="image/x-icon" sizes="64x64"/>

<!-- CSS: -->
<!-- You will have to change this to "../style.css" if this HTML file is in a subfolder, to "../../style.css" if this HTML file is in 2 subfolders, etc. -->
<link href="/style.css" rel="stylesheet" />
    
<!-- JavaScript: -->
<!-- You will have to change this to "../layout.js" if this HTML file is in a subfolder, to "../../layout.js" if this HTML file is in 2 subfolders, etc. -->
<script src="/layout.js"></script>

This is a small portion of my index.html file.

If you look at the files it tries to load, such as the layout file, there is a / at the start, which means the root folder.

On a website, this is the domain itself, so / would https://zac0511.com/

However, when you double click a file like index.html to open it in your browser, / refers to file:///, aka the root of your drive (/ on Linux and Mac, C:\ on Windows), and the rest of the files obviously are not there (for me they were in my projects folder at 1~/Projects/website/).

So look at the difference with and without Local Mode on :

Without Local Mode
With Local Mode
1 / 2

With Local Mode enabled, / now refers to https://zac0511-website.firefox.localhost (or whatever you chose to use), and stuff can load correctly !

The cool buttons

Something i see everywhere on the indie web are 88x31 buttons, those are little buttons with a size of 88x31 pixels.*

So i of course added a lot of those to my own website :3

You can use those buttons to show who you are, what you like, and like other sites you like!

I've read somewhere (forgot where, sorry), that a website should always link to other websites made by other people, or else it would be a dead end of the internet.

So i've got buttons leading to Petrapixel's website (the person who made the template maker, if you remember what you read above), to Firefox (cuz i like Firefox), etc.

If you like a website and it has a button, put it in your site.
If it doesn't have a button, make one yourself with this :

88x31 Web Button Maker
HINT: generate the gradient here, then paste the css style above!
https://hekate2.github.io/buttonmaker/

If you got friends who have their own websites, you should add buttons for their websites !

I've added a button to 's website for example.

My button

You can add this code to your website if you want to embed my button :

<a href="https://zac0511.com/" target="_blank"><img src="https://zac0511.com/button.png" alt="Zac0511"></a>

Hosting

This kind of website is plain HTML, so you can use pretty much anything to host it, such as :

  • GitHub Pages or GitLab pages

  • Cloudflare Pages/Workers

  • Self-hosting

  • wisp.place if you want to host it on your ATmosphere PDS

  • 2Portal 2

Personally, since my domain is already on Cloudflare, i use Cloudflare Pages to host it.


I think that's pretty much everything i had to say :3

If you want to see the code, my website is open source :

Zac0511 / Website · GitLab
Zac0511's website
https://gitlab.com/Zac0511/website