summaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
authorAlex Mayer <amayer5125@gmail.com>2020-03-09 20:33:25 -0400
committerAlex Mayer <amayer5125@gmail.com>2020-03-09 20:46:21 -0400
commit285039078776e1a334a258edc75b0124775c62c1 (patch)
treea74c846587850d7e929edc9cb64af54c548806fc /blog
parent93bb3408f1ba0bc5fb6eb49576d347c55b04abc5 (diff)
downloadjthanio-285039078776e1a334a258edc75b0124775c62c1.tar
jthanio-285039078776e1a334a258edc75b0124775c62c1.tar.gz
jthanio-285039078776e1a334a258edc75b0124775c62c1.tar.bz2
jthanio-285039078776e1a334a258edc75b0124775c62c1.tar.lz
jthanio-285039078776e1a334a258edc75b0124775c62c1.tar.xz
jthanio-285039078776e1a334a258edc75b0124775c62c1.tar.zst
jthanio-285039078776e1a334a258edc75b0124775c62c1.zip
Fix Indentation
Add missing </ul> which indentation exposed.
Diffstat (limited to 'blog')
-rw-r--r--blog/templates/blog/blog_index_page.html80
-rw-r--r--blog/templates/blog/blog_post.html24
-rw-r--r--blog/templates/blog/blog_tag_index_page.html25
3 files changed, 57 insertions, 72 deletions
diff --git a/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html
index d58d1a9..7fb04ff 100644
--- a/blog/templates/blog/blog_index_page.html
+++ b/blog/templates/blog/blog_index_page.html
@@ -7,65 +7,63 @@
{% block content %}
<div class="container">
-
<div class="row">
-
<!-- Blog Entries Column -->
<div class="col-md-8">
-
<h1 class="my-4">{{ page.title }}
<small class="text-muted">{{ page.intro }}</small>
</h1>
+
<hr>
{% for post in blogpages %}
- {% with post=post.specific %}
-
- <!-- Blog Post -->
- <div class="card mb-4">
- {% if post.main_image %}
- {% image post.main_image fill-750x300-c100 class="card-img-top" %}
- {% endif %}
- <div class="card-body">
- <h2 class="card-title">{{ post.title }}</h2>
- <p class="card-text">{{ post.intro }}</p>
- <a href="{% pageurl post %}">Read Post</a>
- </div>
- <div class="card-footer text-muted">
- Posted on {{ post.date }}
- </div>
- </div>
- {% endwith %}
+ {% with post=post.specific %}
+ <!-- Blog Post -->
+ <div class="card mb-4">
+ {% if post.main_image %}
+ {% image post.main_image fill-750x300-c100 class="card-img-top" %}
+ {% endif %}
+ <div class="card-body">
+ <h2 class="card-title">{{ post.title }}</h2>
+ <p class="card-text">{{ post.intro }}</p>
+ <a href="{% pageurl post %}">Read Post</a>
+ </div>
+ <div class="card-footer text-muted">
+ Posted on {{ post.date }}
+ </div>
+ </div>
+ {% endwith %}
{% endfor %}
<!-- Pagination -->
{% if blogpages.paginator.num_pages > 1 %}
- <ul class="pagination justify-content-center mb-4">
- {% if blogpages.has_previous %}
- <li class="page-item">
- <a class="page-link" href="?page={{ blogpages.previous_page_number }}">&larr; Newer</a>
- </li>
- {% else %}
- <li class="page-item disabled">
- <a class="page-link" href="#">&larr; Newer</a>
- </li>
- {% endif %}
- {% if blogpages.has_next %}
- <li class="page-item">
- <a class="page-link" href="?page={{ blogpages.next_page_number }}">Older &rarr;</a>
- </li>
- {% else %}
- <li class="page-item disabled">
- <a class="page-link" href="#">Older &rarr;</a>
- </li>
- {% endif %}
+ <ul class="pagination justify-content-center mb-4">
+ {% if blogpages.has_previous %}
+ <li class="page-item">
+ <a class="page-link" href="?page={{ blogpages.previous_page_number }}">&larr; Newer</a>
+ </li>
+ {% else %}
+ <li class="page-item disabled">
+ <a class="page-link" href="#">&larr; Newer</a>
+ </li>
+ {% endif %}
+ {% if blogpages.has_next %}
+ <li class="page-item">
+ <a class="page-link" href="?page={{ blogpages.next_page_number }}">Older &rarr;</a>
+ </li>
+ {% else %}
+ <li class="page-item disabled">
+ <a class="page-link" href="#">Older &rarr;</a>
+ </li>
+ {% endif %}
+ </ul>
{% endif %}
</div>
<!-- Sidebar Widgets Column -->
<div class="col-md-4">
- {% include "search.html" %}
+ {% include "search.html" %}
</div>
- </div>
+ </div>
</div>
{% endblock %}
diff --git a/blog/templates/blog/blog_post.html b/blog/templates/blog/blog_post.html
index 6bd48f8..541c69f 100644
--- a/blog/templates/blog/blog_post.html
+++ b/blog/templates/blog/blog_post.html
@@ -7,34 +7,28 @@
{% block body_class %}template-blogpage{% endblock %}
{% block content %}
-
<div class="container">
-
<div class="row">
-
<!-- Post Content Column -->
<div class="col-lg-8">
-
<!-- Title -->
<h1 class="mt-4">{{ page.title }}</h1>
<!-- Date/Time -->
{% with categories=page.categories.all %}
- <p>Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}</p>
+ <p>Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}</p>
{% endwith %}
<hr>
<!-- Preview Image -->
{% if page.main_image %}
- {% image page.main_image fill-900x300-c100 class="img-fluid rounded" %}
- <hr>
+ {% image page.main_image fill-900x300-c100 class="img-fluid rounded" %}
+ <hr>
{% endif %}
<!-- Post Content -->
<p class="lead">{{ page.intro }}</p>
{% include_block page.body %}
-
-
</div>
<!-- Sidebar Widgets Column -->
@@ -48,20 +42,18 @@
<div class="col-lg-10">
<ul class="list-unstyled mb-0">
{% if page.tags.all.count %}
- {% for tag in page.tags.all %}
- <span class="badge badge-light"><a href="{% slugurl 'tags' %}?tag={{ tag }}">{{ tag }}</a></span>
- {% endfor %}
+ {% for tag in page.tags.all %}
+ <span class="badge badge-light"><a href="{% slugurl 'tags' %}?tag={{ tag }}">{{ tag }}</a></span>
+ {% endfor %}
{% else %}
- No tags for this post
+ No tags for this post
{% endif %}
+ </ul>
</div>
</div>
</div>
</div>
</div>
-
-
-
</div>
<p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p>
diff --git a/blog/templates/blog/blog_tag_index_page.html b/blog/templates/blog/blog_tag_index_page.html
index fda427b..789627c 100644
--- a/blog/templates/blog/blog_tag_index_page.html
+++ b/blog/templates/blog/blog_tag_index_page.html
@@ -3,17 +3,14 @@
{% block content %}
<div class="container">
-
<div class="row">
-
<!-- Blog Entries Column -->
<div class="col-md-8">
+ {% if request.GET.tag|length %}
+ <h1 class="my-4">Showing pages tagged "{{ request.GET.tag }}"</h1>
- {% if request.GET.tag|length %}
- <h1 class="my-4">Showing pages tagged "{{ request.GET.tag }}"</h1>
-
- {% for post in blogpages %}
- {% with post=post.specific %}
+ {% for post in blogpages %}
+ {% with post=post.specific %}
<!-- Blog Post -->
<div class="card mb-4">
<div class="card-body">
@@ -25,19 +22,17 @@
Posted on {{ post.date }}
</div>
</div>
- {% endwith %}
- {% endfor %}
- {% else %}
- <h1 class="my-4">No pages with tag {{request.GET.tag }} available</h1>
- {% endif %}
- <p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p>
+ {% endwith %}
+ {% endfor %}
+ {% else %}
+ <h1 class="my-4">No pages with tag {{request.GET.tag }} available</h1>
+ {% endif %}
+ <p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p>
</div>
<!-- Sidebar Widgets Column -->
<div class="col-md-4">
{% include "search.html" %}
</div>
-
</div>
</div>
-
{% endblock %}