diff options
author | Alex Mayer <amayer5125@gmail.com> | 2020-03-09 20:49:32 -0400 |
---|---|---|
committer | Alex Mayer <amayer5125@gmail.com> | 2020-03-09 20:49:32 -0400 |
commit | 9ec179b02cc38233bdaf0c6e4c09744b858bc2b7 (patch) | |
tree | 224f07473db7cd74b1fb9fd5f5c3c31db54b0b8a | |
parent | 23b6d6ecc7c29540cb59df6e44325771fbde9115 (diff) | |
download | jthanio-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
-rw-r--r-- | blog/templates/blog/blog_index_page.html | 8 | ||||
-rw-r--r-- | blog/templates/blog/blog_post.html | 14 | ||||
-rw-r--r-- | blog/templates/blog/blog_tag_index_page.html | 6 | ||||
-rw-r--r-- | home/templates/home/home_page.html | 6 | ||||
-rw-r--r-- | jthanio/templates/search.html | 2 | ||||
-rw-r--r-- | search/templates/search/search.html | 8 |
6 files changed, 22 insertions, 22 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> diff --git a/home/templates/home/home_page.html b/home/templates/home/home_page.html index 9374dfb..d8e296c 100644 --- a/home/templates/home/home_page.html +++ b/home/templates/home/home_page.html @@ -7,9 +7,9 @@ {% 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> <hr> @@ -17,7 +17,7 @@ {% include_block page.body %} </div> - <!-- Sidebar Widgets Column --> + {# Sidebar Widgets Column #} <div class="col-md-4"> {% include "search.html" %} </div> diff --git a/jthanio/templates/search.html b/jthanio/templates/search.html index a906c5e..127a9f4 100644 --- a/jthanio/templates/search.html +++ b/jthanio/templates/search.html @@ -1,4 +1,4 @@ -<!-- Search Widget --> +{# Search Widget #} <div class="card my-4"> <h5 class="card-header">Search</h5> <div class="card-body"> diff --git a/search/templates/search/search.html b/search/templates/search/search.html index 0b092a6..e5f5ab2 100644 --- a/search/templates/search/search.html +++ b/search/templates/search/search.html @@ -8,13 +8,13 @@ {% block content %} <div class="container"> <div class="row"> - <!-- Blog Entries Column --> + {# Blog Entries Column #} <div class="col-md-8"> {% if search_results %} <h1 class="my-4">Showing search results for "{{ search_query }}"</h1> {% for result in search_results %} {% with post=result.specific %} - <!-- Blog Post --> + {# Blog Post #} <div class="card mb-4"> <div class="card-body"> <h2 class="card-title">{{ post.title }}</h2> @@ -30,10 +30,10 @@ {% elif search_query %} <h1 class="my-4">No results found</h1> {% endif %} - <!-- end of results --> + {# end of results #} <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> |