mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Nuovi bottoni, fix vecchie pagine, aggiornamento Raccolta siti web
This commit is contained in:
@ -6,11 +6,15 @@ mkdir -p ./build
|
||||
cd ./build
|
||||
cp -r \
|
||||
../archetypes ../i18n \
|
||||
../content ../static \
|
||||
../content ../assets \
|
||||
../layouts ../themes \
|
||||
../hugo.toml \
|
||||
../hugo.toml ../static \
|
||||
./
|
||||
|
||||
if [ "${sitocttEnv}" = GitHub ]
|
||||
then cp ./layouts/partials/assetsRoot.GitHub.html ./layouts/partials/assetsRoot.html
|
||||
fi
|
||||
|
||||
sh "${swd}/Translate/Get.sh"
|
||||
sh "${swd}/Translate/Apply.sh"
|
||||
hugo $@
|
||||
|
@ -15,15 +15,12 @@ const FrontmatterNew = {
|
||||
htmltitle: false,
|
||||
};
|
||||
let Replacements = { // Format: { ReplaceWithString: [ToFindString] }
|
||||
"<h2>[:HNotesRefsHTML:]</h2>": "<h2>🏷️ Note e Riferimenti</h2>",
|
||||
"<h2>{{% i18n notes-refs %}}</h2>": "<h2>🏷️ Note e Riferimenti</h2>",
|
||||
'<div class="footnotes">': ['<div class="footnotes"><hr>', '<div class="footnotes">\n<hr>'],
|
||||
'"><a class="footnote-ref" href="#fn': '"><a href="#fn',
|
||||
" href=\"{{< assetsRoot >}}/": " href=\"https://sitoctt-assets.octt.eu.org/",
|
||||
" src=\"{{< assetsRoot >}}/": " src=\"https://sitoctt-assets.octt.eu.org/",
|
||||
'<div class="highlight CodeScroll">': '<div class="highlight">',
|
||||
//'<iframe src="[:YouTubeURL:]/' :'<iframe src="https://www.youtube-nocookie.com/',
|
||||
'<video src="[:YouTube360:]' :'<iframe src="https://www.youtube-nocookie.com/embed/',
|
||||
'></video>': ' class="YouTube"></iframe>',
|
||||
// TODO: Fix anchor rels
|
||||
};
|
||||
const TestURL = 'https://listed.to/p/hDaMhJ2ts7';
|
||||
|
@ -2,21 +2,26 @@
|
||||
. "$(dirname "$(realpath "$0")")/Lib/Globals.sh"
|
||||
cd "${swd}/.."
|
||||
|
||||
alias asroot=""
|
||||
if [ "$(whoami)" != root && "$(uname -o)" != Android ]
|
||||
then alias asroot=sudo
|
||||
fi
|
||||
|
||||
hugoexternal=true
|
||||
if [ -n "$(which apt)" ]
|
||||
then
|
||||
apt update
|
||||
apt install -y python3 nodejs findutils git tar gzip wget
|
||||
asroot apt update
|
||||
asroot apt install -y python3 nodejs findutils git tar gzip wget
|
||||
if [ "$(uname -o)" != Android ]
|
||||
then apt install -y npm
|
||||
then asroot apt install -y npm
|
||||
else
|
||||
apt install -y hugo
|
||||
asroot apt install -y hugo
|
||||
hugoexternal=false
|
||||
fi
|
||||
elif [ -n "$(which apk)" ]
|
||||
then
|
||||
apk update
|
||||
apk add hugo python3 py3-pip nodejs npm findutils git tar gzip wget
|
||||
asroot apk update
|
||||
asroot apk add hugo python3 py3-pip nodejs npm findutils git tar gzip wget
|
||||
hugoexternal=false
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user