lvl0-website/themes/linkita/templates/partials/head_res.html

43 lines
2.9 KiB
HTML
Raw Normal View History

2025-07-10 20:07:36 +02:00
<link rel="stylesheet" href="{{ m_url::rel(there=get_url(path=`main.min.css`, cachebust=true), here=g_here, base=g_base) }}" />
{%- include "partials/head_style.html" %}
{%- if g_profile is defined and not config.extra.urls_to_index_html %}
{%- if g_profile.avatar_url %}
<link rel="preload" as="image" href="{{ m_url::rel(there=get_url(path=g_profile.avatar_url, cachebust=true), here=g_here, base=g_base) }}" />
{%- endif %}
{%- if g_profile.social %}
{%- for image_social in g_profile.social %}
<link rel="preload" as="image" href="{{ m_url::rel(there=m_url::social_icon(icon=image_social.name, prl=true), here=g_here, base=g_base) }}" />
{%- endfor %}
{%- endif %}
{%- endif %}
{%- if not config.extra.disable_default_favicon %}
<link rel="icon" type="image/x-icon" sizes="16x16" href="{{ m_url::rel(there=get_url(path=`favicon.ico`), here=g_here, base=g_base) }}" />
<link rel="apple-touch-icon" type="image/png" href="{{ m_url::rel(there=get_url(path=`apple-touch-icon.png`, cachebust=true), here=g_here, base=g_base) }}" />
<link rel="icon" type="image/png" href="{{ m_url::rel(there=get_url(path=`android-icon.png`, cachebust=true), here=g_here, base=g_base) }}" />
{%- endif %}
{%- if not config.extra.disable_javascript %}
<script src="{{ m_url::rel(there=get_url(path=`js/linkita.min.js`, cachebust=true), here=g_here, base=g_base) }}"></script>
{%- if config.build_search_index %}
<script src="{{ m_url::rel(there=get_url(path=`js/linkita-search.min.js`, cachebust=true), here=g_here, base=g_base) }}"></script>
{%- endif %}
{%- if page.extra.math | default(value=(section.extra.math | default(value=config.extra.math))) %}
{%- if config.extra.use_cdn %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css"
integrity="sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP" crossorigin="anonymous" />
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.js"
integrity="sha384-cMkvdD8LoxVzGF/RPUKAcvmm49FQ0oxwDF3BGKtDXcEc+T1b2N+teh/OJfpU0jr6" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/contrib/auto-render.min.js"
integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous"></script>
{%- else %}
<link rel="stylesheet" href="{{ m_url::rel(there=get_url(path=`katex/katex.min.css`, cachebust=true), here=g_here, base=g_base) }}" />
<script defer src="{{ m_url::rel(there=get_url(path=`katex/katex.min.js`, cachebust=true), here=g_here, base=g_base) }}"></script>
<script defer src="{{ m_url::rel(there=get_url(path=`katex/contrib/auto-render.min.js`, cachebust=true), here=g_here, base=g_base) }}"></script>
{%- endif %}
<script>document.addEventListener("DOMContentLoaded", window.linkita.initKatex);</script>
{%- endif %}
{%- endif %}
{#- -#}