Fix reqs; Add README

This commit is contained in:
octospacc 2024-08-29 00:29:33 +02:00
parent 724bf1eb45
commit a5ba20f0f5
3 changed files with 8 additions and 44 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# ✨sitoctt✨
**[sitoctt.octt.eu.org](https://sitoctt.octt.eu.org)**
🇮🇹️ [Sito web personale](https://sitoctt.octt.eu.org/it/), blog, note, guide, raccolte
🇬🇧️ [Personal website](https://sitoctt.octt.eu.org/en/), blog, notes, guides, collections

View File

@ -1,10 +0,0 @@
#!/bin/sh
# Common action after the base site build succeeded
#cp -vr ./Assets/* ./public/
# Compile self-executable assets
#for Dir in public public.*
#do
find ./public/Assets/ -type f -name "*.*.SelfBuild.js" -exec sh -c "echo {}; node {}; rm {}" \;
#done

View File

@ -1,34 +0,0 @@
#!/bin/sh
HeadInject="
<style>
body {
color: #000000;
background-color: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
body {
color: #FFFFFF;
background-color: #000000;
}
}
img {
max-width: 100%;
max-height: 100vh;
}
</style>
"
cp -r ./public ./public.Plain
mv ./public.Plain ./public/Plain
cd ./public/Plain
find . -name "*.html" \
-exec sed -i "s|<style>|<!--style>|g" {} \; \
-exec sed -i "s|</style>|</style--->|g" {} \;
find . -name "*.html" \
-exec sed -i "s|<head>|<head>\n$(echo $HeadInject)|" {} \;
find . -name "*.css" \
-exec sh -c 'if [ "$(basename {})" != "Global.css" ]; then echo > {}; fi' \;