Fix page titles

This commit is contained in:
FliegendeWurst 2023-10-03 14:53:44 +02:00
parent 065ca39cd6
commit 951086fe7a
5 changed files with 67 additions and 1 deletions

62
static/main.css Normal file
View File

@ -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;
}
}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
{% block html_tag %} {% endblock %}
<head>
<title>FliegendeWurst's corner of the WWW</title>
<title>{% block title %} {% endblock %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico">

View File

@ -2,6 +2,7 @@
{% block html_tag %}
<html itemscope itemtype="https://schema.org/ItemPage" lang="en-US">
{% endblock html_tag %}
{% block title %}{{page.title}}{% endblock title %}
{% block content %}
<article itemid="https://fliegendewurst.eu/blog/{{page.slug}}.html" itemprop="https://schema.org/mainEntity" itemscope itemtype="https://schema.org/BlogPosting">
<h2 class="title">

View File

@ -3,6 +3,7 @@
{% block html_tag %}
<html lang="en">
{% endblock html_tag %}
{% block title %}FliegendeWurst's blog posts{% endblock title %}
{% block content %}
<h1 class="title">

View File

@ -4,6 +4,8 @@
<html lang="en">
{% endblock html_tag %}
{% block title %}FliegendeWurst's corner of the WWW{% endblock title %}
{% block content %}
<span>Posts</span>
<ul>