mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Fix CSS vari e per pagine Journal; Attiv. patch plain HTML; Agg. interni HTML
This commit is contained in:
14
Scripts/Prepare.NoStyle.sh
Normal file → Executable file
14
Scripts/Prepare.NoStyle.sh
Normal file → Executable file
@ -12,7 +12,11 @@ body {
|
||||
background-color: #000000;
|
||||
}
|
||||
}
|
||||
<\/style>
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
"
|
||||
|
||||
cp -r ./public ./public.plain
|
||||
@ -20,11 +24,11 @@ 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" {} \;
|
||||
-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)/" {} \;
|
||||
-exec sed -i "s|<head>|<head>\n$(echo $HeadInject)|" {} \;
|
||||
|
||||
find . -name "*.css" \
|
||||
-exec sh -c "> {}" \;
|
||||
-exec sh -c 'if [ "$(basename {})" != "Global.css" ]; then echo > {}; fi' \;
|
||||
|
Reference in New Issue
Block a user