From 951086fe7a65052fab72301e8592bfe8cd2ac503 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Tue, 3 Oct 2023 14:53:44 +0200 Subject: [PATCH] Fix page titles --- static/main.css | 62 ++++++++++++++++++++++++++++++++++++++++ templates/base.html | 2 +- templates/blog-page.html | 1 + templates/blog.html | 1 + templates/index.html | 2 ++ 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 static/main.css diff --git a/static/main.css b/static/main.css new file mode 100644 index 0000000..6fe4f07 --- /dev/null +++ b/static/main.css @@ -0,0 +1,62 @@ +#favicon { + width: 2.5em; + height: 2.5em; + margin-right: 0.25em; +} + +#header { + display: flex; + flex-direction: row; + align-items: center; +} + +article { + max-width: 45em; +} + +main { + max-width: 60em; + margin-left: auto; + margin-right: auto; + background-color: #d6cebf; + border: 0.3em outset gold; + border-radius: 1em; + padding: 1em; +} + +#hero-img { + width: 30em; + padding: 3em; +} + +.fancy-name, .code { + font-family: monospace; +} + +.entry-footer { + margin-top: 1em; + border-top: 1px solid #005e75; + padding-top: 0.5em; +} + +@media print { + body { + background-color: white; + } +} + +@media (prefers-color-scheme: dark) { + html { + color: #fff; + background-color: #000; + } + a { + color: #aaf; + } + a:visited { + color: #faf; + } + main { + background-color: #222; + } +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index a38677e..ad6814e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,7 +1,7 @@ {% block html_tag %} {% endblock %} -FliegendeWurst's corner of the WWW +{% block title %} {% endblock %} diff --git a/templates/blog-page.html b/templates/blog-page.html index d3dcdb9..9ab2849 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -2,6 +2,7 @@ {% block html_tag %} {% endblock html_tag %} +{% block title %}{{page.title}}{% endblock title %} {% block content %}

diff --git a/templates/blog.html b/templates/blog.html index 91b3f9a..f710e08 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -3,6 +3,7 @@ {% block html_tag %} {% endblock html_tag %} +{% block title %}FliegendeWurst's blog posts{% endblock title %} {% block content %}

diff --git a/templates/index.html b/templates/index.html index 21ed1c1..3cf0269 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,6 +4,8 @@ {% endblock html_tag %} +{% block title %}FliegendeWurst's corner of the WWW{% endblock title %} + {% block content %} Posts