Agg. script; Agg. pagina contatti; Pulizia cod. interno

This commit is contained in:
2022-12-24 16:17:26 +01:00
parent 8054fb347f
commit 7cae6da5aa
10 changed files with 92 additions and 115 deletions

View File

@ -4,7 +4,7 @@ source ./.env
python3 ../staticoso/Source/Build.py \
--SiteDomain="https://sitoctt.octt.eu.org" \
--FolderRoots="{'*':'https://octtspacc.gitlab.io', 'Assets':'https://octtspacc.gitlab.io/sitoctt-assets'}" \
--FolderRoots="{'*':'https://octtspacc.gitlab.io', 'Assets':'https://sitoctt-assets.octt.eu.org'}" \
--DynamicParts="{}" \
--MinifyOutput="False" \
--MinifyAssets="False" \

View File

@ -2,7 +2,7 @@
python3 ./staticoso/Source/Build.py \
--SiteDomain="https://sitoctt.octt.eu.org" \
--FolderRoots="{'*':'https://octtspacc.gitlab.io', 'Assets':'https://octtspacc.gitlab.io/sitoctt-assets'}" \
--FolderRoots="{'*':'https://octtspacc.gitlab.io', 'Assets':'https://sitoctt-assets.octt.eu.org'}" \
--DynamicParts="{'Head':['Twemoji.html'], 'Footer':['StatCounter.html'], 'Other':['CountWindow.html']}" \
--MastodonURL="https://botsin.space" \
--MastodonToken="$MastodonToken" \

View File

@ -10,8 +10,9 @@ const PostsFileDate = true; // Append dates (YYYY-MM-DD) to posts file names
const Replacements = { // Format: { ReplaceWithString: [ToFindString] }
"<h2>[:HNotesRefsHTML:]</h2>": "<h2>🏷️ Note e Riferimenti</h2>",
'<div class="footnotes">': ['<div class="footnotes"><hr>', '<div class="footnotes">\n<hr>'],
"<a href=\"[staticoso:CustomPath:Assets]/": "<a href=\"https://sitoctt-assets.octt.eu.org/",
"<img src=\"[staticoso:CustomPath:Assets]/": "<img src=\"https://sitoctt-assets.octt.eu.org/",
'"><a class="footnote-ref" href="#fn': '"><a href="#fn',
" href=\"[staticoso:CustomPath:Assets]/": " href=\"https://sitoctt-assets.octt.eu.org/",
" src=\"[staticoso:CustomPath:Assets]/": " src=\"https://sitoctt-assets.octt.eu.org/",
// TODO: Fix anchor rels
};
@ -52,7 +53,7 @@ const CheckDownsync = Body => {
if (CheckLine.startsWith('// ')) {
const Tokens = CheckLine.split(' ').filter(i => {return i != ''});
if (Tokens[1] == '%' && Tokens[2] == 'downsync' && [':', '='].includes(Tokens[3])) {
if (['false', 'disabled', 'off', 'no'].includes(Tokens[4])) {
if (['false', 'disabled', 'off', 'no', '0'].includes(Tokens[4])) {
return false;
} else if (Tokens[4].startsWith('/')) {
return Line.substring(Line.indexOf('/', 2));