summaryrefslogtreecommitdiff
path: root/app/posts/templates/posts/guide_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/templates/posts/guide_detail.html')
-rw-r--r--app/posts/templates/posts/guide_detail.html83
1 files changed, 11 insertions, 72 deletions
diff --git a/app/posts/templates/posts/guide_detail.html b/app/posts/templates/posts/guide_detail.html
index af0e649..28ff563 100644
--- a/app/posts/templates/posts/guide_detail.html
+++ b/app/posts/templates/posts/guide_detail.html
@@ -18,87 +18,26 @@
<meta itemprop="position" content="1" />
</span>
<span class="nav-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
- <a href="{% url 'guides:guide-base' %}" itemprop="name">Guides</a>
+ <a href="{% url 'guides:guide-list' %}" itemprop="name">Guides</a>
<meta itemprop="position" content="2" />
</span>
<span class="nav-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
- <span itemprop="name">{{topic}}</span>
+ <span itemprop="name">{{object.title}}</span>
<meta itemprop="position" content="3" />
</span>
</nav>
{% endblock %}
{% block primary %}<main>
- <article class="h-entry hentry entry-content content" itemscope itemType="http://schema.org/BlogPosting">
- <header id="header" class="post-header">
- <h1 class="p-name post-title" itemprop="headline">{{object.title|smartypants|safe}}</h1>
- {% if object.subtitle %}<h2 class="post-subtitle">{{object.subtitle|smartypants|safe}}</h2>{%endif%}
- <div class="post-dateline">
- {% if object.location %}<div class="p-location h-adr adr post-location">
- <span class="h-adr">{% if object.location.country_name == "United States" %}
- <span class="p-locality locality">{{object.location.name|smartypants|safe}}</span>, <a class="p-region region" href="/jrnl/united-states/" title="travel writing from the United States">{{object.location.state_name|safe}}</a>, <span class="p-country-name">U.S.</span>{%else%}
- <span class="p-region">{{object.location.name|smartypants|safe}}</span>, <a class="p-country-name country-name" href="/jrnl/{{object.location.country_slug}}/" title="travel writing from {{object.location.country_name}}">{{object.location.country_name|safe}}</a>{%endif%}
- </span>
- &ndash;&nbsp;<span id="mapbtn" data-clat="{{object.latitude}}" data-clon="{{object.longitude}}" data-type="point" data-latitude="{{object.latitude}}" data-longitude="{{object.longitude}}">Map</a>
- </div>{%endif%}
- <time class="dt-published published dt-updated post-date" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>
- <span class="hide">by <a class="p-author h-card" href="/about">Scott Gilbertson</a></span>
- </div>
- </header>
- <div class="e-content entry-content post-body" itemprop="articleBody">
- {% if object.prologue_html %}<div class="post-afterward ">
- {{object.prologue_html|smartypants|safe}}
- </div><hr />{%endif%}
- {{object.body_html|safe|smartypants}}
- </div>
- <div class="entry-footer">
- <aside>
- <h4>This is part of a series of posts on {{topic|lower}}, you can <a href="{% url 'guides:guides-by-topic' topic|lower %}">read the rest here</a>.</h4>
- </aside>
+ <div class="archive-list">{% for object in object.posts.all %}
+ <article class="h-entry hentry archive-list-card archive-list-card-sm" itemscope itemType="http://schema.org/Article">
+ <span class="date dt-published card-smcaps">{{object.pub_date|date:"F Y"}}</span>
+ <a href="{{object.get_absolute_url}}">
+ <h2 class="card-hed">{{object.title|safe|smartypants|widont}}</h2>
+ <h3 class="p-summary card-lede">{% if object.subtitle %}{{object.subtitle|safe|smartypants|widont}}{%endif%}</h3>
+ </a>
+ <span class="card-smcaps">Filed Under: {{object.get_post_topic_display}}</span>
+ </article>{%endfor%}
</div>
- </article>
- {% if object.related.all %}<div class="article-afterward related">
- <div class="related-bottom">
- <h6 class="hedtinycaps">You might also enjoy</h6>
- <div class="archive-grid-quad">{% for object in related %}
- <div class="archive-grid-card archive-grid-card-simple h-entry">
- <a href="{{object.get_absolute_url}}" title="{{object.title}}">
- <div class="card-image-tiny">
- {% if object.featured_image %}
- {% include "lib/img_archive.html" with image=object.featured_image nolightbox=True %}
- {%endif%}
- </div>
- <h4 class="p-name card-hed" itemprop="headline">{% if object.title %}{{object.title|safe|smartypants|widont}}{% else %}{{object.common_name}}{%endif%}</h4>
- <p class="p-author author hide" ><span class="byline-author">Scott Gilbertson</span></p>
- <span class="card-smcaps">
- {% if object.location %}<span class="p-location h-adr adr card-location" itemprop="contentLocation" itemscope itemtype="http://schema.org/Place">
- {% if object.location.country_name == "United States" %}{{object.location.state_name}}{%else%}{{object.location.country_name}}{%endif%}
- </span>{%endif%}
- {% if object.location and object.model_name.model != 'page' %}&ndash;{%endif%}
- {% if object.model_name.model != 'page' %}<time class="dt-published published dt-updated" datetime="{{object.pub_date|date:'c'}}"><span>{{object.pub_date|date:" Y"}}</span></time>{%endif%}
- </span>
- </a>
- </div>
- {% endfor %}</div>
- </div>
- </div>{%endif%}
- <aside class="narrow join mailing-list--wrapper">
- <h6 class="hedtinycaps">If you enjoyed this, you might like <em><a href="/range/">Range</a></em>, A photography (sometimes) newsletter</h6>
- <iframe target='_parent' style="border:none !important; background:white; width:100% !important;" title="embedded form for subscribing the the Range newsletter" src="{% url 'lttr:subscribe' slug='range' %}"></iframe>
- </aside>
- {% if object.enable_comments %}
-{% get_comment_count for object as comment_count %}
-{%if comment_count > 0 %}
-<div class="comment-wrapper">
-<p class="comments-header">{{comment_count}} Comment{{ comment_count|pluralize }}</p>
-{% render_comment_list for object %}
-{%endif%}
-<div class="comment-form-wrapper {%if comment_count > 0%}comment-form-border{%endif%}">
-{% render_comment_form for object %}
-</div>
-{% else %}
-<p class="comments--header" style="text-align: center">Sorry, comments have been disabled for this post.</p>
-{%endif%}
-</div>
</main>
{% endblock %}
{% block js %}