Compare commits
8 Commits
b51885f0b9
...
c8b6869e7d
Author | SHA1 | Date |
---|---|---|
nono | c8b6869e7d | |
nono | 7aff4edf01 | |
nono | 6908496d77 | |
nono | 2d5d0ca41f | |
nono | 36ce0243e9 | |
nono | ab50a4416c | |
nono | e6ba2b0a47 | |
nono | ddfa39475d |
|
@ -1,3 +1,4 @@
|
|||
# Ignore the build files
|
||||
public/*
|
||||
resources/*
|
||||
*.lock
|
||||
|
|
|
@ -24,7 +24,8 @@ 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) !
|
||||
|
||||
You can also contact me through Matrix [`@n07070:n07070.xyz`](matrix:@n07070:n07070.xyz)
|
||||
<!-- Matrix server is down -->
|
||||
<!-- You can also contact me through Matrix [`@n07070:n07070.xyz`](matrix:@n07070:n07070.xyz) -->
|
||||
|
||||
## Projects and code
|
||||
|
||||
|
@ -49,15 +50,3 @@ 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.
|
||||
|
|
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB |
Before Width: | Height: | Size: 377 KiB After Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 7.5 MiB |
Before Width: | Height: | Size: 7.5 MiB After Width: | Height: | Size: 819 KiB |
Before Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 19 KiB |
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
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/)
|
Before Width: | Height: | Size: 514 KiB After Width: | Height: | Size: 250 KiB |
Before Width: | Height: | Size: 250 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 582 KiB After Width: | Height: | Size: 324 KiB |
Before Width: | Height: | Size: 324 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 61 KiB |
39
publish.sh
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This script will publish the compiled output of the blog
|
||||
# as it is now in this directory.
|
||||
|
||||
|
@ -5,28 +7,41 @@
|
|||
# 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 master
|
||||
git submodule foreach git pull origin main
|
||||
|
||||
# Dither images present in the blog, moving the existing images to filename_original.jpg
|
||||
|
||||
## 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
|
||||
# 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
|
||||
|
||||
# Generate the openring ( https://git.sr.ht/~sircmpwn/openring )
|
||||
./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 ">> 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
|
||||
|
||||
echo ">> Building the website..."
|
||||
hugo --themesDir themes --theme blogotheme --baseURL="https://n07070.xyz" --enableGitInfo --minify --templateMetrics
|
||||
|
||||
echo ">> All done !"
|
||||
|
|
Before Width: | Height: | Size: 239 KiB |
Before Width: | Height: | Size: 819 KiB |
|
@ -1 +1 @@
|
|||
Subproject commit c1c2b078f40c9bf85e61af0e601ad20433d4bd34
|
||||
Subproject commit 9a14b6f9643ae980c32c592b5cb3852bcc29faa2
|