aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-03-10 21:25:58 -0500
committerBobby <[email protected]>2023-03-10 21:25:58 -0500
commit8449f83a150fcb577ccaebc14f5d19e7f88ccb7b (patch)
treef46f65e769e3c2c3f1adc0b6acfe5cda1cf47221
parent869149ae36676d46d2534d20f7981edf3591b57c (diff)
downloadthatcomputerscientist-8449f83a150fcb577ccaebc14f5d19e7f88ccb7b.tar.xz
thatcomputerscientist-8449f83a150fcb577ccaebc14f5d19e7f88ccb7b.zip
Update detailed articles view
-rw-r--r--templates/blog/articles.html36
-rw-r--r--templates/blog/home.html42
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 @@
<input type="submit" value="Apply" class="button button-special" />
</form>
<div id="recent-posts" class="mtctitem">
+ <br>
{% for post in posts %}
- <br>
<div class="post" style="clear: both;">
+ <span>
+ <img src="{% url 'ignis:post_image' '320' post.id %}.gif" alt="Cover image for {{ post.title }}" style="float: left; width: 320px; padding: 0px 13px 0px 0px">
+ </span>
+ <h1 style="margin-top: 0px; margin-bottom: 0px;">
+ <a href="{% url 'blog:post' post.slug %}">{{ post.title }}</a>
+ </h1>
+ <br>
+ <span style="font-size: 11px">Posted on <em><u>{{ post.date | date:"M d, Y" }}</u></em> by <em><a href="{% url 'blog:user_activity' post.author %}">{{ post.author }}</a> in <a href="{% url 'blog:categories' %}/{{ post.category.slug }}">{{ post.category }}</a></em></span>
+ <br><br>
+ <span style="font-size: 11px">Tags: </span>
+ {% for tag in post.tags.all %}
+ <a href="#" class="tag">{{ tag.name|title }}</a>{% if not forloop.last %},{% endif %}
+ {% endfor %}
+ <br><br>
+ <hr>
<div style="text-align: justify; margin-bottom: 0px;">
- <span>
- <img src="{% url 'ignis:post_image' '320' post.id %}.gif" alt="Cover image for {{ post.title }}" style="float: left; width: 320px; padding: 0px 13px 0px 0px">
- </span>
- <h1 style="margin-top: 0px; margin-bottom: 0px;">
- <a href="{% url 'blog:post' post.slug %}">{{ post.title }}</a>
- </h1>
- <br>
- <span style="font-size: 11px">Posted on <em><u>{{ post.date | date:"M d, Y" }}</u></em> by <em><a href="{% url 'blog:user_activity' post.author %}">{{ post.author }}</a> in <a href="{% url 'blog:categories' %}/{{ post.category.slug }}">{{ post.category }}</a></em></span>
- <br><br>
- <span style="font-size: 11px">Tags: </span>
- {% for tag in post.tags.all %}
- <a href="#" class="tag">{{ tag.name|title }}</a>{% if not forloop.last %},{% endif %}
- {% endfor %}
- <br><br>
- <hr>
- {{ post.excerpt | safe }}
+ {{ post.excerpt | safe }}
</div>
<div class="post-actions" style="clear: both;">
<a href="{% url 'blog:post' post.slug %}">Continue Reading</a> | <a href="{% url 'blog:post' post.slug %}#comments">{{ post.num_comments }} Comments</a>
</div>
+ <br>
</div>
- <br>
{% endfor %}
</div>
<div>
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 @@
<h2>Recent Posts</h2>
{% for post in recent_posts %}
<div class="post" style="clear: both;">
- <div class="post" style="clear: both;">
- <div style="text-align: justify; margin-bottom: 0px;">
- <span>
- <img src="{% url 'ignis:post_image' '320' post.id %}.gif" alt="Cover image for {{ post.title }}" style="float: left; width: 320px; padding: 0px 13px 0px 0px">
- </span>
- <h1 style="margin-top: 0px; margin-bottom: 0px;">
- <a href="{% url 'blog:post' post.slug %}">{{ post.title }}</a>
- </h1>
- <br>
- <span style="font-size: 11px">Posted on <em><u>{{ post.date | date:"M d, Y" }}</u></em> by <em><a href="{% url 'blog:user_activity' post.author %}">{{ post.author }}</a> in <a href="{% url 'blog:categories' %}/{{ post.category.slug }}">{{ post.category }}</a></em></span>
- <br><br>
- <span style="font-size: 11px">Tags: </span>
- {% for tag in post.tags.all %}
- <a href="#" class="tag">{{ tag.name|title }}</a>{% if not forloop.last %},{% endif %}
- {% endfor %}
- <br><br>
- <hr>
- {{ post.excerpt | safe }}
- </div>
- <div class="post-actions" style="clear: both;">
- <a href="{% url 'blog:post' post.slug %}">Continue Reading</a> | <a href="{% url 'blog:post' post.slug %}#comments">{{ post.num_comments }} Comments</a>
- </div>
+ <span>
+ <img src="{% url 'ignis:post_image' '320' post.id %}.gif" alt="Cover image for {{ post.title }}" style="float: left; width: 320px; padding: 0px 13px 0px 0px">
+ </span>
+ <h1 style="margin-top: 0px; margin-bottom: 0px;">
+ <a href="{% url 'blog:post' post.slug %}">{{ post.title }}</a>
+ </h1>
+ <br>
+ <span style="font-size: 11px">Posted on <em><u>{{ post.date | date:"M d, Y" }}</u></em> by <em><a href="{% url 'blog:user_activity' post.author %}">{{ post.author }}</a> in <a href="{% url 'blog:categories' %}/{{ post.category.slug }}">{{ post.category }}</a></em></span>
+ <br><br>
+ <span style="font-size: 11px">Tags: </span>
+ {% for tag in post.tags.all %}
+ <a href="#" class="tag">{{ tag.name|title }}</a>{% if not forloop.last %},{% endif %}
+ {% endfor %}
+ <br><br>
+ <hr>
+ <div style="text-align: justify; margin-bottom: 0px;">
+ {{ post.excerpt | safe }}
+ </div>
+ <div class="post-actions" style="clear: both;">
+ <a href="{% url 'blog:post' post.slug %}">Continue Reading</a> | <a href="{% url 'blog:post' post.slug %}#comments">{{ post.num_comments }} Comments</a>
</div>
<br>
</div>