From 8449f83a150fcb577ccaebc14f5d19e7f88ccb7b Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 10 Mar 2023 21:25:58 -0500 Subject: Update detailed articles view --- templates/blog/articles.html | 36 ++++++++++++++++++------------------ templates/blog/home.html | 42 ++++++++++++++++++++---------------------- 2 files changed, 38 insertions(+), 40 deletions(-) diff --git a/templates/blog/articles.html b/templates/blog/articles.html index c8ff7d9f..ff0d3797 100644 --- a/templates/blog/articles.html +++ b/templates/blog/articles.html @@ -35,32 +35,32 @@
+
{% for post in posts %} -
+ + 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 }}{% if not forloop.last %},{% endif %} + {% endfor %} +

+
- - 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 }}{% if not forloop.last %},{% endif %} - {% endfor %} -

-
- {{ post.excerpt | safe }} + {{ post.excerpt | safe }}
Continue Reading | {{ post.num_comments }} Comments
+
-
{% endfor %}
diff --git a/templates/blog/home.html b/templates/blog/home.html index 92ae1be8..0c5ab34a 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -49,28 +49,26 @@

Recent Posts

{% for post in recent_posts %}
-
-
- - 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 }}{% if not forloop.last %},{% endif %} - {% endfor %} -

-
- {{ 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 }}{% if not forloop.last %},{% endif %} + {% endfor %} +

+
+
+ {{ post.excerpt | safe }} +
+
+ Continue Reading | {{ post.num_comments }} Comments

-- cgit v1.2.3