commit 929b4b6b67acbda9c994fc10a9465a501ce20a35
parent 8c3834d96d5ccecfc58ca7efbcc27387ec308e17
Author: mcol <mcol@posteo.net>
Date: Sun, 2 Aug 2020 16:13:36 +0100
complete article template
Diffstat:
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/static/css/main.css b/static/css/main.css
@@ -196,6 +196,12 @@ h1 a:hover {
padding: 5% 15% 3% 0;
}
+.art-info {
+ font-family: "Lucida Console", Monaco, monospace;
+ line-height: 0.8em;
+ margin: 30px 0;
+}
+
.art a,
.art-info a
{
@@ -208,6 +214,9 @@ h1 a:hover {
color: var(--bg);
}
+.mod {
+ font-style: italic;
+}
pre {
font-size: 1.1em;
diff --git a/templates/article.html b/templates/article.html
@@ -10,28 +10,24 @@
{% block content %}
<header>
- <h2>
- <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
- </h2>
+ <h1>
+ <a href="/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
+ </h1>
</header>
-<footer class="post-info">
-
- <time class="published" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
+<footer class="art-info">
+ <time class="pub" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
{% if article.modified %}
- <time class="modified" datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time>
+ <p class=mod>Modified <time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time><p>
{% endif %}
{% if article.category %}
- <div class="category">
- Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
- </div>
+ <p>Category: <a href="/{{ article.category.url }}">{{ article.category }}</a></p>
{% endif %}
-
</footer>
-<div class="entry-content">
+<div class="art">
{{ article.content }}
</div>
{% endblock %}