Layout TOC fix, fix embed YouTube, stili iframe, counter, agg. Raccolte Giochi

This commit is contained in:
2024-09-20 01:58:28 +02:00
parent b3dead8ac2
commit 202a38769a
26 changed files with 105 additions and 44 deletions

View File

@ -11,6 +11,10 @@ cp -r \
../hugo.toml ../static \
./
if [ -z "${HUGO_ENV}" ]
then export HUGO_ENV=development
fi
if [ -n "${sitocttEnv}" ]
then
sed -i -e "s|#${sitocttEnv}:||g" ./hugo.toml

View File

@ -11,7 +11,7 @@ const turndownService = (new TurndownService({
strongDelimiter: "**",
linkStyle: "inlined",
}));
turndownService.keep(['span', 'small', 'sup', 'sub', 'table', 'dl', 'iframe', 'video', 'audio']);
turndownService.keep(['span', 'small', 'sup', 'sub', 'table', 'dl', 'iframe', 'video', 'audio', 'scripts']);
Exp.Transform = (html) => turndownService.turndown(html);

View File

@ -27,6 +27,7 @@ let Replacements = { // Format: { ReplaceWithString: [ToFindString] }
};
let LateReplacements = {
"{{< assetsRoot >}}": "{{&lt; assetsRoot &gt;}}",
'<script async="async" defer="defer" src="https://liminalgici.spacc.eu.org/embed.js"></script><iframe title="Pixelfed Post Embed" src="https://liminalgici.spacc.eu.org/': '<iframe title="Pixelfed Post Embed" src="https://liminalgici.spacc.eu.org/',
};
const TestURL = 'https://listed.to/p/hDaMhJ2ts7';