{#- Theme Switcher Button to toggle between dark/light #}
{%- set integrity = (config.extra.integrity if config.extra.integrity is defined else true) -%}
{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set integrity = false %}{% endif %}{% endif %}
{%- if (config.extra.js_switcher if config.extra.js_switcher is defined else true) %}
{%- set js_theme="js/theme.min.js" %}
{%- if config.extra.js_switcher_default %}
{%- if config.extra.js_switcher_default == "light" %}{% set js_theme="js/theme_light.min.js" %}{% endif %}
{%- endif %}
{%- endif %}
{#- Style Sheets #}
{%- set stylesheets=(config.extra.stylesheets if config.extra.stylesheets is defined else [ "abridge.css" ]) -%}
{%- if stylesheets %}{%- for i in stylesheets %}
{%- endfor %}{%- endif %}
{%- if page?.extra?.stylesheets %}{%- set pagestylesheets=page?.extra?.stylesheets -%}{%- endif %}
{%- if pagestylesheets %}{%- for i in pagestylesheets %}
{%- endfor %}{%- endif %}
{#- meta tags #}
{#- Security: CSP, referrer #}
{%- if config.extra.security_header_referrer %}
{%- endif %}
{%- if config.extra.security_header_csp %}
{%- endif %}
{#- Favicons #}
{%- if config.extra.favicon_theme_color %}
{%- endif %}
{%- if config.extra.favicon_ms_color %}
{%- endif %}
{%- if config.extra.webmanifest %}
{%- endif %}
{%- if config.extra.favicon_mask and config.extra.favicon_mask_color %}
{%- endif %}
{%- if config.extra.favicon_svg %}
{%- endif %}
{%- if config.extra.favicon180 %}
{%- endif %}
{%- if config.extra.favicon32 %}
{%- endif %}
{%- if config.extra.favicon16 %}
{%- endif %}
{#- Style Sheets Preload #}
{%- set integrity = (config.extra.integrity if config.extra.integrity is defined else true) -%}
{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set integrity = false %}{% endif %}{% endif %}
{%- if config.extra.fonts %}{%- for i in config.extra.fonts %}
{%- if i.url is matching(pat="^http[s]?://") %}
{%- else %}
{%- endif %}
{%- endfor %}{%- endif %}
{%- if config.extra.fontawesome %}
{%- endif %}
{%- if config.extra.math or page?.extra?.math %}
{%- set katex_css=(config.extra.katex_css if config.extra.katex_css else "katex.min.css") -%}
{%- if katex_css %}{%- if katex_css is matching(pat="^http[s]?://") %}
{%- else %}
{%- endif %}{%- endif %}
{%- endif %}
{#- Rss / Atom Feed -#}
{%- if config.generate_feeds -%}
{%- for feed in config.feed_filenames -%}
{%- if feed is containing(pat='atom') %}
{%- endif -%}
{%- if feed is containing(pat='rss') %}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{#- Extra items -#}
{%- if config.extra.head_extra %}
{{ config.extra.head_extra | safe }}
{%- endif -%}
{#- End of head partial -#}