Tokhy's Blog

Hello World: Blog Announcement!

Hello Folks! I've now finished the whole blog shit here. I wanted it to look good, minimal, clean, fast, easy to maintain to me. I think I have achieved all that shit. More info below.


Pre-Project

I was inspired by the guys in 512kb.club, and decided that JS is useless for my website. Also, I didn't want to use any framworks, they are so fucking bloated and almost useless to use. Besides, the whole thing has to be simple for me to maintain. However, I wanted first to see what not to do, so I made a 10-min trial on a random blogging website (see it here). It was fucking using 128KB! For a fucking simple blog. Then, I decided to make a simpler version that does not exceed (as a base) 10KB, with text (for blogposts) only in addtion. So I did put the damn thing and checked some old web projects I made in middle school. I decided to screw far from the fuckin MB-measured-websites and services for something that can be done in few KBs, and still looks smart.

My goals were:

  1. Size <= 10KB for the base.
  2. Use no services/ frameworks. Just plain HTML and some CSS.
  3. Use Markdown for writing posts and some other things.
  4. Static webpages.

What I didn't care about:

  1. Reusability.
  2. Practicality, no issue if used some weird stuff to achieve previous goals.

And then, I started the thing.

Mid-Project

It was actually very easy to start, I took an approach for using invert filter instead of specific colors (Crazy approach, I'll change it later). Also, I decided to use github-pages since they make deployment easy.

For writing blogs, I decided to go with markdown style. Besides, since I decided not to use any frameworks/ services, I found using simple shell scripts overpowered for my simple purposes. I used md2html utility (it came as a prerequisite for a pkg I had installed lol), and made a simple script that uses sys utils, and voila the things worked weirdly good.

#The script in short:
cat head >> blogposts/${title}
md2thml ${1} >> blogposts/${title}
#I'm sure you get the idea.

For the Atom feed it wasn't hard to implement it in the shell script using awk utility. Then, I tried it and it worked flawlessly. I used the same "shell script" thing for adding elements to track and wishlist with the same shit.

I thought of hosting the website myself on some small linux server, but the results were in favor of github-pages. So I will go with the latter till I get rich enough.

Post-Project

I achieved all the goals! the website base was only 2KB uncompressed with text as an extra, used only static HTML and CSS with shell scripting backend. [Silently Laughs]

It was fun tbh, my Winter class got cancelled so I took like an hour per day for the past two weeks to do a part of this shit. I am very happy with the project, it fulfilled its simple purpose (spaghetti and proud).

I am not willing to do much changes, may revert that invert shit I did put and I'll be done. I am willing to write more blogposts this year here since I was too lazy to write tbh, maybe get outside of my rock and share the website with couple of friends.

And finally, the source code is here, and thanks github-pages for hosting the website, but fuck you Microsoft.

Have a nice day folks ^^.


Posted at Mon, 18 Jan. 2021 - 04:27:02 AM

philosophies blog favs RSS

wanna bang contact me?