aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/style.css3
-rw-r--r--templates/base.html10
-rw-r--r--templates/page.html4
-rw-r--r--templates/post-page.html4
-rw-r--r--templates/posts.html5
-rw-r--r--templates/robots.txt4
6 files changed, 20 insertions, 10 deletions
diff --git a/static/style.css b/static/style.css
index 30eed92..594cbc2 100644
--- a/static/style.css
+++ b/static/style.css
@@ -7,7 +7,7 @@
html {
/* overflow-y needed for chromium browsers to not shift */
overflow-y: scroll;
- background-color: white;
+ background-color: var(--bg-color);
}
header {
@@ -84,4 +84,3 @@ pre {
footer {
text-align: center;
}
-
diff --git a/templates/base.html b/templates/base.html
index ac9e1af..3e17cdc 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -5,15 +5,15 @@
<meta charset="utf-8" name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="{{ get_url(path='style.css', cachebust=true) }}">
- <link rel="preconnect" href="https://fonts.bunny.net">
+
{% block rss %}
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
{% endblock %}
+
<title>
- {% if page.title %} {{ page.title }} | {{ config.title }}
- {% elif section.title %} {{ section.title }} | {{ config.title }}
- {% elif config.title %} {{ config.title }}
- {% else %} Post {% endif %}
+ {% block title -%}
+ {{ config.title }}
+ {%- endblock title %}
</title>
</head>
diff --git a/templates/page.html b/templates/page.html
index 88c852e..71bfee2 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,5 +1,9 @@
{% extends "base.html" %}
+{% block title -%}
+{{ section.title }} | {{ config.title }}
+{%- endblock title %}
+
{% block content %}
{{ section.content | safe }}
{% endblock content %}
diff --git a/templates/post-page.html b/templates/post-page.html
index bfb891c..f960398 100644
--- a/templates/post-page.html
+++ b/templates/post-page.html
@@ -1,5 +1,9 @@
{% extends "base.html" %}
+{% block title -%}
+{{ page.title }} | {{ config.title }}
+{%- endblock title %}
+
{% block content %}
<h1 class="title">
diff --git a/templates/posts.html b/templates/posts.html
index dfe0001..5b78c59 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -1,5 +1,10 @@
{% extends "base.html" %}
+{% block title -%}
+{{ section.title }} | {{ config.title }}
+{%- endblock title %}
+
+
{% block content %}
<h3 class="title">
{{ section.title }}
diff --git a/templates/robots.txt b/templates/robots.txt
index b6ac790..9662fc4 100644
--- a/templates/robots.txt
+++ b/templates/robots.txt
@@ -1,4 +1,2 @@
User-agent: *
-Disallow:
-Allow: /
-Sitemap: {{ get_url(path="sitemap.xml") }}
+Disallow: /