summaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
authorAlex Mayer <amayer5125@gmail.com>2020-03-09 20:49:32 -0400
committerAlex Mayer <amayer5125@gmail.com>2020-03-09 20:49:32 -0400
commit9ec179b02cc38233bdaf0c6e4c09744b858bc2b7 (patch)
tree224f07473db7cd74b1fb9fd5f5c3c31db54b0b8a /blog
parent23b6d6ecc7c29540cb59df6e44325771fbde9115 (diff)
downloadjthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.tar
jthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.tar.gz
jthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.tar.bz2
jthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.tar.lz
jthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.tar.xz
jthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.tar.zst
jthanio-9ec179b02cc38233bdaf0c6e4c09744b858bc2b7.zip
Use Server Side Comments
This cleans up client side code
Diffstat (limited to 'blog')
-rw-r--r--blog/templates/blog/blog_index_page.html8
-rw-r--r--blog/templates/blog/blog_post.html14
-rw-r--r--blog/templates/blog/blog_tag_index_page.html6
3 files changed, 14 insertions, 14 deletions
diff --git a/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html
index 7fb04ff..355dafd 100644
--- a/blog/templates/blog/blog_index_page.html
+++ b/blog/templates/blog/blog_index_page.html
@@ -8,7 +8,7 @@
{% block content %}
<div class="container">
<div class="row">
- <!-- Blog Entries Column -->
+ {# Blog Entries Column #}
<div class="col-md-8">
<h1 class="my-4">{{ page.title }}
<small class="text-muted">{{ page.intro }}</small>
@@ -18,7 +18,7 @@
{% for post in blogpages %}
{% with post=post.specific %}
- <!-- Blog Post -->
+ {# Blog Post #}
<div class="card mb-4">
{% if post.main_image %}
{% image post.main_image fill-750x300-c100 class="card-img-top" %}
@@ -35,7 +35,7 @@
{% endwith %}
{% endfor %}
- <!-- Pagination -->
+ {# Pagination #}
{% if blogpages.paginator.num_pages > 1 %}
<ul class="pagination justify-content-center mb-4">
{% if blogpages.has_previous %}
@@ -60,7 +60,7 @@
{% endif %}
</div>
- <!-- Sidebar Widgets Column -->
+ {# Sidebar Widgets Column #}
<div class="col-md-4">
{% include "search.html" %}
</div>
diff --git a/blog/templates/blog/blog_post.html b/blog/templates/blog/blog_post.html
index 541c69f..e328308 100644
--- a/blog/templates/blog/blog_post.html
+++ b/blog/templates/blog/blog_post.html
@@ -9,32 +9,32 @@
{% block content %}
<div class="container">
<div class="row">
- <!-- Post Content Column -->
+ {# Post Content Column #}
<div class="col-lg-8">
- <!-- Title -->
+ {# Title #}
<h1 class="mt-4">{{ page.title }}</h1>
- <!-- Date/Time -->
+ {# Date/Time #}
{% with categories=page.categories.all %}
<p>Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}</p>
{% endwith %}
<hr>
- <!-- Preview Image -->
+ {# Preview Image #}
{% if page.main_image %}
{% image page.main_image fill-900x300-c100 class="img-fluid rounded" %}
<hr>
{% endif %}
- <!-- Post Content -->
+ {# Post Content #}
<p class="lead">{{ page.intro }}</p>
{% include_block page.body %}
</div>
- <!-- Sidebar Widgets Column -->
+ {# Sidebar Widgets Column #}
<div class="col-md-4">
{% include "search.html" %}
- <!-- Tags Widget -->
+ {# Tags Widget #}
<div class="card my-4">
<h5 class="card-header">Tags</h5>
<div class="card-body">
diff --git a/blog/templates/blog/blog_tag_index_page.html b/blog/templates/blog/blog_tag_index_page.html
index 789627c..9a3ac8a 100644
--- a/blog/templates/blog/blog_tag_index_page.html
+++ b/blog/templates/blog/blog_tag_index_page.html
@@ -4,14 +4,14 @@
{% block content %}
<div class="container">
<div class="row">
- <!-- Blog Entries Column -->
+ {# Blog Entries Column #}
<div class="col-md-8">
{% if request.GET.tag|length %}
<h1 class="my-4">Showing pages tagged "{{ request.GET.tag }}"</h1>
{% for post in blogpages %}
{% with post=post.specific %}
- <!-- Blog Post -->
+ {# Blog Post #}
<div class="card mb-4">
<div class="card-body">
<h2 class="card-title">{{ post.title }}</h2>
@@ -29,7 +29,7 @@
{% endif %}
<p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p>
</div>
- <!-- Sidebar Widgets Column -->
+ {# Sidebar Widgets Column #}
<div class="col-md-4">
{% include "search.html" %}
</div>