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, 11 insertions, 9 deletions
diff --git a/templates/partials/head.html b/templates/partials/head.html
index 5b1dcf6..fa2c30d 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -1,20 +1,22 @@
<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>
+ {% set title = page.title %}
{% elif section.title %}
- <title>{{ section.title }} :: {{ config.title }}</title>
+ {% set title = section.title %}
{% else %}
- <title>{{ config.title }}</title>
+ {% set title = config.title %}
{% endif %}
+ <title>{{ title }}</title>
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
{% if page.description %}
- <meta name="description" content="{{ page.description }}" />
+ {% set description = page.description %}
{% elif section.description %}
- <meta name="description" content="{{ section.description }}" />
+ {% set description = section.description %}
{% else %}
- <meta name="description" content="{{ config.description }}" />
+ {% set description = config.description %}
{% endif %}
+ <meta name="description" content="{{ description }}" />
+ <link rel="sitemap" href="sitemap.xml" />
+ <link rel="stylesheet" href="/style.css" />
</head>