Compare commits

..

No commits in common. "c8b6869e7d4d298c938675c75fa2b3fdbe01ff2f" and "b51885f0b99541b9a37441b8223226911aeeedef" have entirely different histories.

32 changed files with 26 additions and 56 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
# Ignore the build files
public/*
resources/*
*.lock

View File

@ -24,8 +24,7 @@ Most of the articles and general structure of the blog's source is found [in my
I'm a student in his twenties. I'm trying to figure out life. If you have any thing to say to me, or would just like to tchat, hit me up at [this email](mailto:contact+blog@n07070.xyz) !
<!-- Matrix server is down -->
<!-- You can also contact me through Matrix [`@n07070:n07070.xyz`](matrix:@n07070:n07070.xyz) -->
You can also contact me through Matrix [`@n07070:n07070.xyz`](matrix:@n07070:n07070.xyz)
## Projects and code
@ -50,3 +49,15 @@ I accept donations via Liberapay for now, but if you prefer another way, I'm sur
<script src="https://liberapay.com/N07070/widgets/button.js"></script>
<noscript><a href="https://liberapay.com/N07070/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></noscript>
## Why doesn't this blog use Javascript ?
I don't use Javascript for x reasons :
- It slows down your browsing
- It means my servers takes more bandwith and energy
- I don't need it
- I don't want you to run code without knowing what it does,
- ... and I don't want you to not have the choice about it.
Javascript in general is not that great of a idea.

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 819 KiB

After

Width:  |  Height:  |  Size: 7.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,25 +0,0 @@
---
categories : ["English"]
title : "Why is there no javascript on this website ?"
displayInMenu : false
dropCap : false
date : "2022-01-01"
draft : false
displayInList : false
resources:
- name: featuredImage
src: "cover.jpg"
---
Javascript is a programming language made for dynamic websites. My website is not dynamic : you read what I write, but they is no interaction. No comments, no ads, no tracking.
I don't use Javascript for x reasons :
- It slows down your browsing
- It means my servers takes more bandwith and energy
- I don't need it
- I don't want you to run code without knowing what it does,
- ... and I don't want you to not have the choice about it.
It's also a power-saving mesure : it means that they is less bandwidth used, thus less electricity. And that's also a small, but important way to preserve the planet.
Javascript in general is not that great of a idea. You can read more about it here : ["I Turned Off JavaScript for a Whole Week and It Was Glorious"](https://www.wired.com/2015/11/i-turned-off-javascript-for-a-whole-week-and-it-was-glorious/)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 582 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
# This script will publish the compiled output of the blog
# as it is now in this directory.
@ -7,41 +5,28 @@
# making a git branch at this point, or a git tag
# to enable rollbacks.
# Make errors be fatal
set -e
WEBSITE_URL="https://n07070.xyz"
echo ">> Update the remotes..."
# Last blog version
git pull origin master
# Get last theme version
git submodule foreach git pull origin main
git submodule foreach git pull origin master
# Dither images present in the blog, moving the existing images to filename_original.jpg
# Commented, because colors is nice, and dithering actually brings more issues than it solves:
# Images size tends to be bigger, relative to quality,
# It's not easy for some people to see the image that way,
# It's more trouble than it's worth.
# echo ">> Dithering the images..."
# ## Travel down the directory content/
# find "./content" \ # Find from the content directory
# -maxdepth 4 \ # Maximum depth of 4 dirs
# -type f \ # Find only files
# -name "*.jpg" \ # Find only JPEG files
# -exec \ # Execute next lines
# cp {} {}.original && \ # Copy file and add .original to it's filename
# convert {} -colorspace GRAY -o ordered-dither o2x2 {} &&\ # Dither image
# jpegoptim {} -S 80 -t ; # Optimize the jpeg file
## Travel down the directory content/
find content/ \ # Find from the content directory
-maxdepth 4 \ # Maximum depth of 4 dirs
-type f \ # Find only files
-name "*.jpg" \ # Find only JPEG files
-exec \ # Execute next lines
cp {} {}.original && \ # Copy file and add .original to it's filename
convert {} -colorspace GRAY -o ordered-dither o2x2 {} &&\ # Dither image
jpegoptim {} -S 80 -t ; # Optimize the jpeg file
# Generate the openring ( https://git.sr.ht/~sircmpwn/openring )
echo ">> Generating the openring..."
openring -s https://www.laquadrature.net/feed -s -s https://solar.lowtechmagazine.com/feeds/all-en.rss.xml < themes/blogotheme/layouts/partials/openring-in.html > themes/blogotheme/layouts/partials/openring-out.html
./openring -s https://www.laquadrature.net/feed -s https://mamot.fr/@n07070.rss -s https://solar.lowtechmagazine.com/feeds/all-en.rss.xml < in.html > openring-out.html
echo ">> Building the website..."
hugo --themesDir themes --theme blogotheme --baseURL="https://n07070.xyz" --enableGitInfo --minify --templateMetrics
echo ">> All done !"

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 KiB

@ -1 +1 @@
Subproject commit 9a14b6f9643ae980c32c592b5cb3852bcc29faa2
Subproject commit c1c2b078f40c9bf85e61af0e601ad20433d4bd34