mirror of https://gitlab.com/octtspacc/sitoctt
Fix reqs; Add README
This commit is contained in:
parent
724bf1eb45
commit
a5ba20f0f5
|
@ -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' \;
|
Loading…
Reference in New Issue