{#- Theme Switcher Button to toggle between dark/light #} {%- set integrity = config.extra.integrity | default(value=true) -%} {%- if config.extra.offline %}{% set integrity = false %}{% endif %} {%- if config.extra.js_switcher | default(value=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 | default(value=[ "abridge.css" ]) -%} {%- if stylesheets %}{%- for i in stylesheets %} {%- 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 | default(value=true) -%} {%- if config.extra.offline %}{% set integrity = false %}{% endif %} {%- if config.extra.fonts %}{%- for i in config.extra.fonts %} {%- if i.url is matching("^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 | default(value="katex.min.css") -%} {%- if katex_css %}{%- if katex_css is matching("^http[s]?://") %} {%- else %} {%- endif %}{%- endif %} {%- endif %} {#- Rss / Atom Feed #} {%- if config.generate_feeds %} {%- for feed in config.feed_filenames %} {%- if feed is containing('atom') %} {%- endif %} {%- if feed is containing('rss') %} {%- endif %} {%- endfor %} {%- endif %} {#- Extra items #} {%- if config.extra.head_extra %} {{ config.extra.head_extra | safe }} {%- endif %} {#- End of head partial -#}