This commit is contained in:
Miloslav Ciz 2025-01-21 21:53:21 +01:00
parent 1f6026b2ee
commit 61bb2ebca8
23 changed files with 2038 additions and 1922 deletions

View file

@ -83,7 +83,7 @@ Here we will quickly sum up how to make a **[static](static.md), single page pla
**NOTE on TLS (https)**: most sites on the web nowadays use encryption for MUH SECURITY obsession and also web browsers and search engines kinda prefer such sites etc. (in the future it will probably be required but by then we'll already be elsewhere) -- such site addresses are prefixed with `https://`, as opposed to normal non-encrypted `http://`. [Encryption](encryption.md) is huge [bloat](bloat.md) and mess to set up, normally you need to pay extra money to get a [certificate](certificate.md) for it (though services like Let's Encrypt provide certificates for free) etc. -- basically you only need encryption if you have an interactive site where passwords or other sensitive info gets sent, a purely static site basically doesn't need encryption at all, however if your site doesn't support encryption it may get some penalty by search engines and browsers as they won't "trust it as much", it's just a form of internet bullying for not conforming to latest encryption hysteria. All in all if you can set up encryption easily (e.g. with a single button on your web hosting provider site), do it just for the sake of normies; if you are experienced and can set it up yourself easily, also do it, but if not, just don't care about it and run your site on `http://` only, at least for now until you get into this stuff. Also very importantly **always support plain unencrypted http** even if you set up https, otherwise you're bullying simple browsers that don't implement encryption.
Now **do NOT follow mainstream tutorials on making website** (Wordpress, PHP, static generators, ...) -- these are absolute horseshit and just follow ugly capitalist ways, you will just get brain cancer. Also do NOT use any frameworks; **do NOT even use static site generators** -- these are not needed at all! All you really need for making a small website is:
Now **do NOT follow mainstream tutorials on making website** (Wordpress, [PHP](php.md), static generators or even [JavaScript](js.md) ...) -- these are absolute horseshit and just follow ugly capitalist ways, will only give you brain cancer. Also do NOT use any frameworks; **do NOT even use static site generators** -- these are not needed at all! { To demonstrate this I quickly made a tiny 40 LOC shell script that does everything a typical static site generator does, including RSS. It's at http://git.coom.tech/drummyfish/drummy_stuff/src/branch/master/static_www. } All you really need for making a small website is:
- **[Plain text](plain_text.md) editor** (gedit, [geany](geany.md), [vim](vim.md), [emacs](emacs.md), [ed](ed.md), ...). This is easy, just download it. Just don't use a [rich text](rich_text.md) editor (MS Office, Libreoffice, ...), ok? That doesn't work!
- **Static site hosting**, i.e. a publicly accessible web server to store your site on, which will serve the site to clients. You have several options here:
@ -109,7 +109,7 @@ Now you have to make the actual website in [HTML](html.md). For that create a ne
</html>
```
This is really a bare-minimum testing website -- to expand it see the article on [HTML](html.md).
This is really a bare-minimum testing website -- to expand it see the article on [HTML](html.md). Remember that if you want to make your site more complex, you can do 99% of everything only with basic Unix tools, HTML is just text and to generate HTML you do NOT need an HTML parser (and even for some basic analysis you still don't need a parses, [regex](regex.md) usually do the job).
Now you have to upload this html file to the hosting server -- check out the details of your hosting server on how to do this (you may e.g. need to use [git](git.md) or [ftp](ftp.md) to upload the file). And that's basically it, the rest is just expanding your site, making scripts to automatize uploading etc.