Update scripts, About me and config

This commit is contained in:
nono 2021-05-29 17:19:29 +02:00
parent a0b3c4b43f
commit 3cce6af42f
6 changed files with 49 additions and 2 deletions

View File

@ -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"

View File

@ -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
<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.

View File

0
dither.sh Normal file → Executable file
View File

0
openring.sh Normal file → Executable file
View File

33
publish.sh Executable file
View File

@ -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