mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Layout TOC fix, fix embed YouTube, stili iframe, counter, agg. Raccolte Giochi
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -27,6 +27,7 @@ let Replacements = { // Format: { ReplaceWithString: [ToFindString] }
|
||||
};
|
||||
let LateReplacements = {
|
||||
"{{< assetsRoot >}}": "{{< assetsRoot >}}",
|
||||
'<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';
|
||||
|
||||
|
Reference in New Issue
Block a user