diff --git a/README.md b/README.md index a272300..a867429 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ IgnIt is a [kiln](https://github.com/hakula139/kiln) theme built with Tailwind C - All CDN deps exact-pinned with SRI hashes (FontAwesome, KaTeX, lightGallery, Mermaid, Twikoo) - Phase-scoped dep loading — each dep emitted once per page, gated on actual content needs +- Content-hashed URLs for local CSS and JavaScript entry assets - LQIP wrappers paint kiln's base64 backdrop while sources decode ### Accessibility diff --git a/templates/_partials/layout/body-deps.html b/templates/_partials/layout/body-deps.html index 8e8c406..a3a2d99 100644 --- a/templates/_partials/layout/body-deps.html +++ b/templates/_partials/layout/body-deps.html @@ -15,28 +15,43 @@ {{ cdn.script(lg ~ "/lightgallery.min.js", deps.lightgallery.sri.js) }} {{ cdn.script(lg ~ "/plugins/thumbnail/lg-thumbnail.min.js", deps.lightgallery.sri.thumbnail) }} {{ cdn.script(lg ~ "/plugins/zoom/lg-zoom.min.js", deps.lightgallery.sri.zoom) }} - + {%- endif %} {%- if need_math %} {%- set katex = cdn_base ~ "/katex@" ~ deps.katex.version -%} {{ cdn.script(katex ~ "/dist/katex.min.js", deps.katex.sri.js) }} {{ cdn.script(katex ~ "/dist/contrib/auto-render.min.js", deps.katex.sri.autorender) }} - + {%- endif %} {%- if need_mermaid %} {%- set mermaid = cdn_base ~ "/mermaid@" ~ deps.mermaid.version -%} {{ cdn.script(mermaid ~ "/dist/mermaid.min.js", deps.mermaid.sri.js) }} - + {%- endif %} {%- if need_twikoo %} {%- set twikoo = cdn_base ~ "/twikoo@" ~ deps.twikoo.version -%} {{ cdn.script(twikoo ~ "/dist/twikoo.min.js", deps.twikoo.sri.js) }} - + {%- endif %} {%- if need_pagination %} - + {%- endif %} diff --git a/templates/base.html b/templates/base.html index 7846bf9..da41b75 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,12 +12,20 @@ {%- endif %} - + {%- if page_css %} {%- endif %} - - + + {% include "_partials/layout/head-deps.html" %} {%- block head %}{% endblock %} @@ -46,13 +54,28 @@ {%- endif %} {# Defer scripts ordered by visual urgency: paint-affecting first, interaction-only last. #} - - - + + + {%- if config.params.effects and config.params.effects.cursor_glow %} - + {%- endif %} - + {%- if assets is defined %} {%- for script in assets.scripts %}