summaryrefslogtreecommitdiff
path: root/app/posts
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-04-06 16:59:23 -0400
committerluxagraf <sng@luxagraf.net>2020-04-06 16:59:23 -0400
commit0fdb50984668da4f360a0408ba50cb43136d3de9 (patch)
tree6cb19a9661d0272a4c88aa9928891dbb242b5aa8 /app/posts
parentd5b1ad3850c09154b783712762b6129ec0aa3f20 (diff)
changed post handling and fixed some bugs in templates
Diffstat (limited to 'app/posts')
-rw-r--r--app/posts/models.py2
-rw-r--r--app/posts/templates/posts/guide_detail.html2
-rw-r--r--app/posts/templates/posts/post_detail.html2
-rw-r--r--app/posts/templates/posts/post_list.html10
-rw-r--r--app/posts/views.py2
5 files changed, 8 insertions, 10 deletions
diff --git a/app/posts/models.py b/app/posts/models.py
index 8a0ac23..0c5d74f 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -60,7 +60,7 @@ class Post(models.Model):
(0, 'single'),
)
POST_TYPE = (
- (0, 'guide'),
+ (0, 'field test'),
(1, 'review'),
(2, 'essay'),
)
diff --git a/app/posts/templates/posts/guide_detail.html b/app/posts/templates/posts/guide_detail.html
index 2ce5a6e..7e5df74 100644
--- a/app/posts/templates/posts/guide_detail.html
+++ b/app/posts/templates/posts/guide_detail.html
@@ -34,7 +34,7 @@
<main>
<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
- <li><a href="/guides/" title="Advice, Tools, Tips and Tricks for Full Time Van, RV, and School Bus Life." itemprop="url"> <span itemprop="title">Guides</span></a> &rarr; </li>
+ <li><a href="/field-tests/" title="Advice, Tools, Tips and Tricks for Full Time Van, RV, and School Bus Life." itemprop="url"> <span itemprop="title">Field-Tests</span></a> &rarr; </li>
<li itemprop="title">{{object.short_title|smartypants|safe}}</li>
</ul>
<article class="h-entry hentry {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %} post--article--double{%endif%}{%endwith%}" itemscope itemType="http://schema.org/Article">
diff --git a/app/posts/templates/posts/post_detail.html b/app/posts/templates/posts/post_detail.html
index 6840658..9e82786 100644
--- a/app/posts/templates/posts/post_detail.html
+++ b/app/posts/templates/posts/post_detail.html
@@ -34,7 +34,7 @@
<main>
<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
- <li><a href="/guides/" title="Advice, Tools, Tips and Tricks for Full Time Van, RV, and School Bus Life." itemprop="url"> <span itemprop="title">{{object.get_post_type_display}}</span></a> &rarr; </li>
+ <li><a href="/field-tests/" title="Advice, Tools, Tips and Tricks for Full Time Van, RV, and School Bus Life." itemprop="url"> <span itemprop="title">{{object.get_post_type_display}}</span></a> &rarr; </li>
<li itemprop="title">{{object.short_title|smartypants|safe}}</li>
</ul>
<article class="h-entry hentry {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %} post--article--double{%endif%}{%endwith%}" itemscope itemType="http://schema.org/Article">
diff --git a/app/posts/templates/posts/post_list.html b/app/posts/templates/posts/post_list.html
index 9ec3e25..9b3a1f3 100644
--- a/app/posts/templates/posts/post_list.html
+++ b/app/posts/templates/posts/post_list.html
@@ -11,14 +11,12 @@
</ul>
<main role="main" id="essay-archive" class="essay-archive archive-list">
<div class="essay-intro">
- <h2>Guides for fellow travelers</h2>
+ <h2>Field Tests</h2>
<h3>Advice, Tools, Tips, and Tricks for Full Time Van or RV Life.</h3>
- <p>After {{years_on_the_road}} years on the road, here's what I know: all you really need is a van or RV, a way to cook, and way to keep food cool.</p>
- <p>After that, it's all luxury. The less stuff you travel with the better off you will be. Well, up to a point. But where is that point? What do you really need? What should you skip? What's enough? What's too much?</p>
- <p>Ultimately, these are questions you'll have to answer for yourself, and you won't answer them until you get out there and start living on the road full time. In the mean time, this is me answering those questions for myself, and hoping maybe it will help you find your own answers faster.</p>
- <p>Topics include {% for topic in topic_list %}{{topic}}, {% endfor %}camping, cooking, photography, simplicity, and once or twice, coffee.</p>
+ <p>After {{years_on_the_road}} years on the road, here's what I know: all you really need is a vehicle, a stove and a cooler. After that, it's all luxury. The less stuff you travel with the better off you are. Up to a point. Having the right tools is important. The right tools make life easier and more fun.</p>
+ <p>I put this together to help you find the tools you need. These aren't casual reviews. These are things I have spent years seeking out, using, and refining. In the end what you need are not things, but solutions to problems. </p>
</div>
- <h1 class="topic-hed">Guides</h1>
+ <h1 class="topic-hed">Reviews</h1>
{% autopaginate object_list 30 %}
<ul class="fancy-archive-list">{% for object in object_list %}
<li class="h-entry hentry" itemscope itemType="http://schema.org/Article">
diff --git a/app/posts/views.py b/app/posts/views.py
index 47c8c86..2e5c95a 100644
--- a/app/posts/views.py
+++ b/app/posts/views.py
@@ -29,7 +29,7 @@ class GuidesListView(PostList):
def get_context_data(self, **kwargs):
context = super(GuidesListView, self).get_context_data(**kwargs)
- context['archive_type'] = 'Guides'
+ context['archive_type'] = 'Field Tests'
return context