Initial import of Hugo site to Forgejo

This commit is contained in:
Iman Alipour 2026-07-28 12:47:20 +00:00
commit cb1ba0317f
1259 changed files with 236349 additions and 0 deletions

View file

@ -0,0 +1,17 @@
// Uses global window.mermaid provided by mermaid.min.js
function renderMermaid() {
if (!window.mermaid) {
console.error('Mermaid not found on window');
return;
}
window.mermaid.initialize({ startOnLoad: false });
window.mermaid.run({ querySelector: '.mermaid' });
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', renderMermaid, { once: true });
} else {
renderMermaid();
}