From f47db4ac713c42997fde0e1437891f6a4b3437ba Mon Sep 17 00:00:00 2001
From: Lucie Anglade
Date: Fri, 4 Aug 2023 23:13:32 +0200
Subject: [PATCH] Remove w3 class and clean HTML structure
---
themes/afpy/static/css/website.css | 53 +++++++--
themes/afpy/templates/archives.html | 16 +--
themes/afpy/templates/article.html | 87 ++++++++-------
themes/afpy/templates/author.html | 4 +-
themes/afpy/templates/authors.html | 4 +-
themes/afpy/templates/base.html | 62 +++--------
themes/afpy/templates/categories.html | 4 +-
themes/afpy/templates/category.html | 35 +++---
themes/afpy/templates/index.html | 123 ++++++++++-----------
themes/afpy/templates/page.html | 10 +-
themes/afpy/templates/pagination.html | 14 +--
themes/afpy/templates/period_archives.html | 16 +--
themes/afpy/templates/tag.html | 4 +-
themes/afpy/templates/tags.html | 4 +-
14 files changed, 225 insertions(+), 211 deletions(-)
diff --git a/themes/afpy/static/css/website.css b/themes/afpy/static/css/website.css
index ff4185c..fb1fcf2 100644
--- a/themes/afpy/static/css/website.css
+++ b/themes/afpy/static/css/website.css
@@ -1,10 +1,45 @@
-@import "w3.css";
-@import "all.min.css";
+/* Fonts */
+@font-face{
+ font-family: Atkinson;
+ src: url(../webfonts/Atkinson-Hyperlegible-Regular-102.ttf);
+}
-@font-face{font-family:atkinson;src:url(../webfonts/Atkinson-Hyperlegible-Regular-102.ttf)}
-body, h1, h2, h3, h4, h5, h6{font-family:atkinson}
-img{width:100%}
-.logo{width:3em}
-iframe{background:#eaeaea;border:0;height:55em;width:100%}
-.w3-margin-bottom-32{margin-bottom:32px!important}
-.uppercase{text-transform:uppercase}
+
+/* Variables */
+
+:root {
+ --black: #0e0e0e;
+ --blue: #327bd6;
+ --dark-green: #32ada9;
+ --green: #ebff32;
+ --orange: #ff6f32;
+ --purple: #84326b;
+ --white: #ffffff;
+}
+
+
+/* Common */
+
+html {
+ background: var(--white);
+ color: var(--black);
+ font-family: sans-serif;
+ font-size: 14pt;
+ line-height: 1.5;
+}
+
+body {
+ margin: 0;
+}
+
+
+/* Header */
+
+header {
+ height: 4em;
+ left: 0;
+ position: fixed;
+ top: 0;
+ width: 100vw;
+}
+
diff --git a/themes/afpy/templates/archives.html b/themes/afpy/templates/archives.html
index cd12950..0fc84ec 100644
--- a/themes/afpy/templates/archives.html
+++ b/themes/afpy/templates/archives.html
@@ -3,12 +3,14 @@
{% block title %}{{ SITENAME }} - Archives{% endblock %}
{% block content %}
-Archives for {{ SITENAME }}
+
+ Archives for {{ SITENAME }}
-
-{% for article in dates %}
- - {{ article.locale_date }}
- - {{ article.title }}
-{% endfor %}
-
+
+ {% for article in dates %}
+ - {{ article.locale_date }}
+ - {{ article.title }}
+ {% endfor %}
+
+
{% endblock %}
diff --git a/themes/afpy/templates/article.html b/themes/afpy/templates/article.html
index cb88a1c..cfeae45 100644
--- a/themes/afpy/templates/article.html
+++ b/themes/afpy/templates/article.html
@@ -18,48 +18,55 @@
{% for tag in article.tags %}
{% endfor %}
-
{% endblock %}
{% block content %}
-
-
- {% import 'translations.html' as translations with context %}
- {{ translations.translations_for(article) }}
-
-
-
- {{ article.content }}
-
+
+ {% endif %}
+
+ {% if article.tags %}
+
+ Tags
+
+ {% for tag in article.tags %}
+ - {{ tag }}
+ {% endfor %}
+
+
+ {% endif %}
+
+
+
+ {{ article.content }}
+
+
{% endblock %}
diff --git a/themes/afpy/templates/author.html b/themes/afpy/templates/author.html
index 79d22c7..26858c2 100644
--- a/themes/afpy/templates/author.html
+++ b/themes/afpy/templates/author.html
@@ -3,6 +3,8 @@
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
{% block content_title %}
-Articles by {{ author }}
+
+ Articles by {{ author }}
+
{% endblock %}
diff --git a/themes/afpy/templates/authors.html b/themes/afpy/templates/authors.html
index 9aee5db..6d10019 100644
--- a/themes/afpy/templates/authors.html
+++ b/themes/afpy/templates/authors.html
@@ -3,10 +3,12 @@
{% block title %}{{ SITENAME }} - Authors{% endblock %}
{% block content %}
- Authors on {{ SITENAME }}
+
+ Authors on {{ SITENAME }}
{% for author, articles in authors|sort %}
- {{ author }} ({{ articles|count }})
{% endfor %}
+
{% endblock %}
diff --git a/themes/afpy/templates/base.html b/themes/afpy/templates/base.html
index b45948b..2e23753 100644
--- a/themes/afpy/templates/base.html
+++ b/themes/afpy/templates/base.html
@@ -14,57 +14,31 @@
-
+
{% block content %}
{% endblock %}
-
-