aboutsummaryrefslogtreecommitdiff
path: root/templates/partials/shared/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/shared/head.html')
-rw-r--r--templates/partials/shared/head.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/templates/partials/shared/head.html b/templates/partials/shared/head.html
new file mode 100644
index 0000000..185a97b
--- /dev/null
+++ b/templates/partials/shared/head.html
@@ -0,0 +1,50 @@
+{% if config.extra.favicon.webmanifest %}
+ <link href='{{ config.extra.favicon.webmanifest }}' rel="manifest" />
+{% endif %}
+{% if config.extra.favicon.safari_pinned_tab %}
+ <link color="#5bbad5" href='{{ config.extra.favicon.safari_pinned_tab }}' rel="mask-icon" />
+{% endif %}
+{% if config.extra.favicon.favicon_16x16 %}
+ <link href='{{ config.extra.favicon.favicon_16x16 }}' rel="icon" sizes="16x16" type="image/png" />
+{% endif %}
+{% if config.extra.favicon.favicon_32x32 %}
+ <link href='{{ config.extra.favicon.favicon_32x32 }}' rel="icon" sizes="32x32" type="image/png" />
+{% endif %}
+{% if config.extra.favicon.apple_touch_icon %}
+ <link href='{{ config.extra.favicon.apple_touch_icon }}' rel="apple-touch-icon" sizes="180x180" />
+{% endif %}
+
+{% if config.extra.galleria.enabled %}
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/themes/folio/galleria.folio.min.css"
+ integrity="sha384-+rY0QD+LRnTOquDMzGa9lXU6jIwdiQuwCJQ2cdcW0qeP/0UbjQCZlXnRsUMA+9pH" crossorigin="anonymous">
+{% endif %}
+
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css"
+ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
+
+<link href="{{ get_url(path='style.css') }}" rel="stylesheet" />
+
+{% block user_custom_stylesheet %}{% endblock %}
+
+<title>
+ {% block title %}
+ {{ config.title }}
+ {% endblock title %}
+</title>
+
+{% if config.extra.katex.enabled %}
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css"
+ integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous">
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js"
+ integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx"
+ crossorigin="anonymous"></script>
+
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/mathtex-script-type.min.js"
+ integrity="sha384-jiBVvJ8NGGj5n7kJaiWwWp9AjC+Yh8rhZY3GtAX8yU28azcLgoRo4oukO87g7zDT"
+ crossorigin="anonymous"></script>
+ {% if config.extra.katex.auto_render %}
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/auto-render.min.js"
+ integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR"
+ crossorigin="anonymous"></script>
+ {% endif %}
+{% endif %} \ No newline at end of file