summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorMiran Bastaja <ihazpink@pm.me>2024-07-29 02:02:42 +0300
committerMiran Bastaja <ihazpink@pm.me>2024-07-29 02:02:42 +0300
commit767d900874dc803319f57a066c8b97f80f66697b (patch)
tree1c8a81f088ab4a4d2da03feb4ce97db892e9f760 /templates/base.html
parent0c08d40a703ec4b4e377a8bb3decf0227b43ab3a (diff)
parent29b670de0bcf65eeaae7e95eb4607ced912c4a27 (diff)
Merge pull request 'Update site theme' (#1) from theming into main
Reviewed-on: https://git.sorre.xyz/miranb/sorre-website/pulls/1
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html26
1 files changed, 22 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index f07856d..53a9db5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -2,13 +2,31 @@
<html lang="en">
<head>
- <meta charset="utf-8">
- <title>Sorre</title>
+ <meta charset="UTF-8">
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
+ <meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="stylesheet" href="/style.css">
+
+ {% if page.title %}
+ {% set title = page.title %}
+ {% elif section.title %}
+ {% set title = section.title %}
+ {% elif config.title %}
+ {% set title = config.title %}
+ {% endif %}
+ {% if title %}<title>{{ title }}</title>{% endif %}
+
+ {% if config.generate_feed %}
+ <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false)}}">
+ {% endif %}
+
+ <link rel="stylesheet" href="{{ get_url(path='style.css', trailing_slash=false) | safe }}" />
</head>
-<body>
- {% block content %} {% endblock %}
+<body theme="auto">
+ <div class="w">
+ {% block content %} {% endblock %}
+ </div>
</body>
</html>