From 9ec179b02cc38233bdaf0c6e4c09744b858bc2b7 Mon Sep 17 00:00:00 2001 From: Alex Mayer Date: Mon, 9 Mar 2020 20:49:32 -0400 Subject: Use Server Side Comments This cleans up client side code --- blog/templates/blog/blog_index_page.html | 8 ++++---- blog/templates/blog/blog_post.html | 14 +++++++------- blog/templates/blog/blog_tag_index_page.html | 6 +++--- home/templates/home/home_page.html | 6 +++--- jthanio/templates/search.html | 2 +- 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 %}
- + {# Blog Entries Column #}

{{ page.title }} {{ page.intro }} @@ -18,7 +18,7 @@ {% for post in blogpages %} {% with post=post.specific %} - + {# Blog Post #}
{% if post.main_image %} {% image post.main_image fill-750x300-c100 class="card-img-top" %} @@ -35,7 +35,7 @@ {% endwith %} {% endfor %} - + {# Pagination #} {% if blogpages.paginator.num_pages > 1 %}
    {% if blogpages.has_previous %} @@ -60,7 +60,7 @@ {% endif %}
- + {# Sidebar Widgets Column #}
{% include "search.html" %}
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 %}
- + {# Post Content Column #}
- + {# Title #}

{{ page.title }}

- + {# Date/Time #} {% with categories=page.categories.all %}

Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}

{% endwith %}
- + {# Preview Image #} {% if page.main_image %} {% image page.main_image fill-900x300-c100 class="img-fluid rounded" %}
{% endif %} - + {# Post Content #}

{{ page.intro }}

{% include_block page.body %}
- + {# Sidebar Widgets Column #}
{% include "search.html" %} - + {# Tags Widget #}
Tags
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 %}
- + {# Blog Entries Column #}
{% if request.GET.tag|length %}

Showing pages tagged "{{ request.GET.tag }}"

{% for post in blogpages %} {% with post=post.specific %} - + {# Blog Post #}

{{ post.title }}

@@ -29,7 +29,7 @@ {% endif %}

Return to previous page

- + {# Sidebar Widgets Column #}
{% include "search.html" %}
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 %}
- + {# Post Content Column #}
- + {# Title #}

{{ page.title }}


@@ -17,7 +17,7 @@ {% include_block page.body %}
- + {# Sidebar Widgets Column #}
{% include "search.html" %}
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
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 %}
- + {# Blog Entries Column #}
{% if search_results %}

Showing search results for "{{ search_query }}"

{% for result in search_results %} {% with post=result.specific %} - + {# Blog Post #}

{{ post.title }}

@@ -30,10 +30,10 @@ {% elif search_query %}

No results found

{% endif %} - + {# end of results #}

Return to previous page

- + {# Sidebar Widgets Column #}
{% include "search.html" %}
-- cgit v1.2.3