mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Agg. PicoBlog, Raccolte Internet e Riso, Home page, Chi sono, Temi
This commit is contained in:
@ -2,5 +2,5 @@
|
||||
|
||||
python3 ../staticoso/Source/Build.py \
|
||||
--SiteDomain="http://sitoctt2fxjvx3lc2iqqef2aeulflprjaasv2xl4zi7sxxbmvjy5b5yd.onion" \
|
||||
--FolderRoots="{'*':'', 'Assets':'sitoctt-assets'}" \
|
||||
--FolderRoots="{'*':'/', 'Assets':'/sitoctt-assets'}" \
|
||||
--NoScripts=True
|
||||
|
30
Scripts/Prepare.NoStyle.sh
Normal file
30
Scripts/Prepare.NoStyle.sh
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
HeadInject="
|
||||
<style>
|
||||
body {
|
||||
color: #000000;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
color: #FFFFFF;
|
||||
background-color: #000000;
|
||||
}
|
||||
}
|
||||
<\/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 "> {}" \;
|
Reference in New Issue
Block a user