From 3cce6af42ff335daa6220f7dc809d1ccc04dbd52 Mon Sep 17 00:00:00 2001 From: nono Date: Sat, 29 May 2021 17:19:29 +0200 Subject: [PATCH] Update scripts, About me and config --- config.toml | 4 ++-- content/About Me/index.md | 14 ++++++++++++++ content/Notes/why-no-js.md | 0 dither.sh | 0 openring.sh | 0 publish.sh | 33 +++++++++++++++++++++++++++++++++ 6 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 content/Notes/why-no-js.md mode change 100644 => 100755 dither.sh mode change 100644 => 100755 openring.sh create mode 100755 publish.sh diff --git a/config.toml b/config.toml index a24ad02..aefac7b 100644 --- a/config.toml +++ b/config.toml @@ -16,7 +16,7 @@ theme = "blogotheme" [languages] [languages.en] - title = "The Octect Press" + title = "The Octet Press" weight = 2 [languages.en.params] brand = "The Octet Press" @@ -24,7 +24,7 @@ theme = "blogotheme" bgimg = "" rssinmenu = true [languages.fr] - title = "La Presse à Octect" + title = "La Presse à Octet" weight = 1 [languages.fr.params] brand = "La Press à Octet" diff --git a/content/About Me/index.md b/content/About Me/index.md index fba5c48..44cf6a3 100644 --- a/content/About Me/index.md +++ b/content/About Me/index.md @@ -24,6 +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) + ## Projects and code My git server is the main repository of code. Some of it is mirrored from other forges, such as Gitlab or Github. @@ -47,3 +49,15 @@ I accept donations via Liberapay for now, but if you prefer another way, I'm sur + +## 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. diff --git a/content/Notes/why-no-js.md b/content/Notes/why-no-js.md new file mode 100644 index 0000000..e69de29 diff --git a/dither.sh b/dither.sh old mode 100644 new mode 100755 diff --git a/openring.sh b/openring.sh old mode 100644 new mode 100755 diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..ea04db6 --- /dev/null +++ b/publish.sh @@ -0,0 +1,33 @@ +# This script will publish the compiled output of the blog +# as it is now in this directory. + +# It could be futher improved by taking this version, +# making a git branch at this point, or a git tag +# to enable rollbacks. + +WEBSITE_URL="https://n07070.xyz" + +# Last blog version +git pull origin master + +# Get last theme version +git submodule foreach git pull origin master + +# 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 + + +# 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 + + +hugo --themesDir themes --theme blogotheme --baseURL="https://n07070.xyz" --enableGitInfo --minify --templateMetrics