From 08f406c44c861a914c8b63fab454250f8a4c4b36 Mon Sep 17 00:00:00 2001
From: Jieiku
Date: Wed, 20 Sep 2023 00:25:21 -0700
Subject: refactor nav, blocks, macros, templates. fix image shortcodes
---
templates/partials/head.html | 131 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 131 insertions(+)
create mode 100644 templates/partials/head.html
(limited to 'templates/partials/head.html')
diff --git a/templates/partials/head.html b/templates/partials/head.html
new file mode 100644
index 0000000..4e6b713
--- /dev/null
+++ b/templates/partials/head.html
@@ -0,0 +1,131 @@
+
+{#- 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_feed %}
+
+ {%- endif %}
+
+
+
+
+
+{#- End of head partial -#}
--
cgit v1.3.1