this post was submitted on 07 Apr 2021
24 points (96.2% liked)

Linux

49436 readers
547 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I want to make a 1kb clean and simple website/blog (like https://250kb.club/) without JavaScript, any advice, or should I just code from HTML every page/article?

top 21 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 3 years ago (1 children)
[–] [email protected] 6 points 3 years ago (1 children)
[–] [email protected] 3 points 3 years ago* (last edited 3 years ago)
[–] [email protected] 10 points 3 years ago

I'd recommend using a static site generator e.g. Hugo, Zola They use a template engine to create the pages, so you can write all your pages in markdown and these get built into slots in your templates. This gives you the freedom to write a very lightweight template such that each page is your template header plus your converted markdown. I've not touched Hugo in a while, but writing a Zola theme is quite straightforward and minimal.

[–] [email protected] 8 points 3 years ago (1 children)

My website weighs around 2kB and is written in pure HTML/CSS. You can check out the code on my GitHub

[–] [email protected] 4 points 3 years ago

Nice, thats a pretty and simple website!

[–] [email protected] 5 points 3 years ago (1 children)

If you want to keep it as simple as possible, just use HTML. I don't even know what you can put in 1kb of HTML if you leave out all the head meta data. Have to try that out.

[–] [email protected] 1 points 3 years ago (1 children)

Well, really short posts. I only write a few paragraphs and the plain text is over 4kB!

[–] [email protected] 2 points 3 years ago (1 children)

Use the most basic HTML elements, sections, paragraphs, headings. No need to go fancy.

[–] [email protected] 1 points 3 years ago (1 children)

That is, in my case, the markdown I generate from. So pretty minimal.

[–] [email protected] 2 points 3 years ago (1 children)

That is already pretty minimal, but why the 1kb? As the website that is mentioned is 250kb max. That is quite the difference.

[–] [email protected] 1 points 3 years ago (1 children)

I don't have 1kB as a target, it's simply impossible unless I make the reader read my stuff in gzip. I just mentioned that your posts have to be really short to even be able to make a 1kB site like OP wants to

[–] [email protected] 2 points 3 years ago

Yeah sorry, i misplaced the OP and you with your wants and needs, so interpreted your comment differently. But yeah getting a 1KB site is super hard! But it is a nice challenge.

[–] [email protected] 5 points 3 years ago

As someone with a sub250kb website (30.45KB), I can recommend to look into HTML templating things. Stuff like Jinja2 or the Go HTML templater. Then you write raw HTML with some CSS.

This also makes my ADHD want me to make a sub 1kB webpage out of what I have atm, though it might be hard considering it includes a 4KB image.

[–] [email protected] 4 points 3 years ago (1 children)

Mod comment:

Just a heads up, please keep this community relevant to Linux specifically in the future. This post would fit better in [email protected]

Since people have already posted helpful information, I won't remove or lock this post, and I'm also not asking you to delete it, this is just a reminder for future posts.

[–] [email protected] 3 points 3 years ago

sorry, didin't know for [email protected]

[–] [email protected] 4 points 3 years ago

Just serve static files

[–] [email protected] 3 points 3 years ago (1 children)

I'd personally say, just code it by hand. If it's just gonna be only a few pages then this will be easy.

Neocities is perfect for sites like these.

[–] [email protected] 3 points 3 years ago

Thanks! I already have a website (retiolus.net), I just want to make it more simple and less complicate to code.

[–] [email protected] 3 points 3 years ago* (last edited 3 years ago)

My blog (~50KB) is fairly minimal, but for me 1kb is way too much of a constraint. It would sacrifice too much functionality. I like to keep things tiny, tidy and stupid, but still usable/functional.

[–] [email protected] 2 points 3 years ago

You fools, to achieve maximum light speed on websites loading, you need to write it's code on a paper, so then you have a 0KB website, gg ez.