mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Fix reqs; Add README
This commit is contained in:
8
README.md
Normal file
8
README.md
Normal 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
|
||||||
|
|
@ -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
|
|
@ -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' \;
|
|
Reference in New Issue
Block a user