From e83fbe2e6b5ede9a4ad1692391c261935d38eb40 Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 10 Mar 2023 21:09:51 -0500 Subject: Update detailed articles view --- templates/blog/articles.html | 13 +++++++++++-- templates/blog/home.html | 39 +++++++++++++++++++++++---------------- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/templates/blog/articles.html b/templates/blog/articles.html index 8038c8a9..c4ef632f 100644 --- a/templates/blog/articles.html +++ b/templates/blog/articles.html @@ -38,13 +38,22 @@ {% for post in posts %}
-
+
- Cover image for {{ post.title }} + Cover image for {{ post.title }}

{{ post.title }}

+
+ Posted on {{ post.date | date:"M d, Y" }} by {{ post.author }} in {{ post.category }} +

+ Tags: + {% for tag in post.tags.all %} + {{ tag.name|title }} + {% endfor %} +

+
{{ post.excerpt | safe }}
diff --git a/templates/blog/home.html b/templates/blog/home.html index eba8c4f9..2de95870 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -49,23 +49,30 @@

Recent Posts

{% for post in recent_posts %}
-

- {{ post.title }} -

-

- Posted on {{ post.date | date:"M d, Y" }} by - {{ post.author }} in - {{ post.category }} -

-
- - Cover image for {{ post.title }} - - {{ post.excerpt | safe }} -
-
- Continue Reading | {{ post.num_comments }} Comments +
+
+ + Cover image for {{ post.title }} + +

+ {{ post.title }} +

+
+ Posted on {{ post.date | date:"M d, Y" }} by {{ post.author }} in {{ post.category }} +

+ Tags: + {% for tag in post.tags.all %} + {{ tag.name|title }} + {% endfor %} +

+
+ {{ post.excerpt | safe }} +
+
+ Continue Reading | {{ post.num_comments }} Comments +
+
{% endfor %}
-- cgit v1.2.3