summaryrefslogtreecommitdiff
path: root/templates/partials/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/head.html')
-rw-r--r--templates/partials/head.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/partials/head.html b/templates/partials/head.html
new file mode 100644
index 0000000..5b1dcf6
--- /dev/null
+++ b/templates/partials/head.html
@@ -0,0 +1,20 @@
+<head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
+ <style>{{ load_data(path="static/main.css") | safe }}</style>
+ <link rel="sitemap" href="sitemap.xml" />
+ {% if page.title %}
+ <title>{{ page.title }} :: {{ config.title }}</title>
+ {% elif section.title %}
+ <title>{{ section.title }} :: {{ config.title }}</title>
+ {% else %}
+ <title>{{ config.title }}</title>
+ {% endif %}
+ {% if page.description %}
+ <meta name="description" content="{{ page.description }}" />
+ {% elif section.description %}
+ <meta name="description" content="{{ section.description }}" />
+ {% else %}
+ <meta name="description" content="{{ config.description }}" />
+ {% endif %}
+</head>