From 3ac5a83a2ffff9e630b2d6f7c9cbc2cad4e13aab Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Mon, 7 Nov 2016 10:18:02 +0300 Subject: [PATCH] User html5 semantic elements --- alchemy/static/css/style.css | 2 +- alchemy/templates/article.html | 12 +++++------- alchemy/templates/base.html | 18 +++++++++--------- alchemy/templates/index.html | 26 ++++++++++++-------------- alchemy/templates/page.html | 8 +++----- 5 files changed, 30 insertions(+), 36 deletions(-) diff --git a/alchemy/static/css/style.css b/alchemy/static/css/style.css index 53167ad..56b40f6 100644 --- a/alchemy/static/css/style.css +++ b/alchemy/static/css/style.css @@ -49,7 +49,7 @@ a:hover { } .header img, -.header ul { +.header nav { margin-bottom: 20px; } diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 862b0cd..00c04dd 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -14,8 +14,8 @@ {% endblock %} {% block content %} -
-
+
+
  • {{ article.locale_date }}
  • ·
  • @@ -33,10 +33,8 @@ {% endif %}
-
-
- {{ article.content }} -
-
+ + {{ article.content }} + {% include 'include/comments.html' %} {% endblock %} diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index ede4487..1cb96b7 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -55,7 +55,7 @@ -
+
@@ -68,7 +68,7 @@

{{ SITE_TAGLINE }}


{% if HEADER_LINKS or SHOW_HEADER_PAGES or EMAIL_ADDRESS or FACEBOOK_ADDRESS or GITHUB_ADDRESS or GOOGLE_ADDRESS or TWITTER_ADDRESS %} -
    +
+ {% endif %}
-
+
@@ -119,12 +119,12 @@
- - + + diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index 7bb10d1..3f6d0a5 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -15,21 +15,19 @@ All Articles {% block content %} {% for article in articles_page.object_list %} -
-
- -
-

{{ article.title }}

-

{{ article.summary }}

-
+
+ {% if not loop.last %}
{% endif %} diff --git a/alchemy/templates/page.html b/alchemy/templates/page.html index 8bc4497..800e2ed 100644 --- a/alchemy/templates/page.html +++ b/alchemy/templates/page.html @@ -14,9 +14,7 @@ {% endblock %} {% block content %} -
-
- {{ page.content }} -
-
+
+ {{ page.content }} +
{% endblock %}