summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/posts/templates/posts/jrnl_detail.html60
1 files changed, 7 insertions, 53 deletions
diff --git a/app/posts/templates/posts/jrnl_detail.html b/app/posts/templates/posts/jrnl_detail.html
index ffd13dd..e34a825 100644
--- a/app/posts/templates/posts/jrnl_detail.html
+++ b/app/posts/templates/posts/jrnl_detail.html
@@ -7,52 +7,6 @@
{% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %}
{%block extrahead%}
<link rel="canonical" href="https://luxagraf.net{{object.get_absolute_url}}" />
- <meta name="ICBM" content="{{object.latitude}}, {{object.longitude}}" />
- <meta name="geo.position" content="{{object.latitude}}; {{object.longitude}}" />
- <meta name="geo.placename" content="{% if object.location.country_name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.country_name}}{%endif%}">
- <meta name="geo.region" content="{{object.country.iso2}}{%if object.state.code != '' %}-{{object.state.code}}{%endif%}">
- <meta property="og:type" content="article" />
- <meta property="og:title" content="{{object.title|safe}}" />
- <meta property="og:url" content="https://luxagraf.net{{object.get_absolute_url}}" />
- <meta property="og:description" content="{{object.meta_description}}" />
- <meta property="article:published_time" content="{{object.pub_date|date:'c'}}" />
- <meta property="article:author" content="Scott Gilbertson" />
- <meta property="og:site_name" content="Luxagraf" />
- <meta property="og:image" content="{{object.get_featured_image}}" />
- <meta property="og:locale" content="en_US" />
- <meta name="twitter:card" content="summary_large_image"/>
- <meta name="twitter:description" content="{{object.meta_description}}"/>
- <meta name="twitter:title" content="{{object.title|safe}}"/>
- <meta name="twitter:site" content="@luxagraf"/>
- <meta name="twitter:domain" content="luxagraf"/>
- <meta name="twitter:image:src" content="{{object.get_featured_image}}"/>
- <meta name="twitter:creator" content="@luxagraf"/>
-<script type="application/ld+json">
-{
- "@context": "https://schema.org",
- "@type": "Article",
- "mainEntityOfPage": {
- "@type": "WebPage",
- "@id": "https://luxagraf.net{{object.get_absolute_url}}"
- },
- "headline": "{{object.title}}",
- "datePublished": "{{object.pub_date|date:'c'}}+04:00",
- "dateModified": "{{object.pub_date|date:'c'}}+04:00",
- "author": {
- "@type": "Person",
- "name": "Scott Gilbertson"
- },
- "publisher": {
- "@type": "Organization",
- "name": "Luxagraf",
- "logo": {
- "@type": "ImageObject",
- "url": "https://luxagraf.net/media/img/logo-white.jpg"
- }
- },
- "description": "{{object.meta_description}}"
-}
-</script>
{%endblock%}
{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
{% block primary %}<main>
@@ -61,15 +15,15 @@
<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" itemprop="contentLocation" itemscope itemtype="http://schema.org/Place">
- <span class="h-adr" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">{% if object.location.country_name == "United States" %}
- <span class="p-locality locality" itemprop="addressLocality">{{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" itemprop="addressCountry">U.S.</span>{%else%}
- <span class="p-region" itemprop="addressRegion">{{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}}"><span itemprop="addressCountry">{{object.location.country_name|safe}}</span></a>{%endif%}
+ {% 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" itemprop="author" itemscope itemtype="http://schema.org/Person">by <a class="p-author h-card" href="/about"><span itemprop="name">Scott Gilbertson</span></a></span>
+ <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">
@@ -119,7 +73,7 @@
<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">
+ <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 %}
@@ -127,7 +81,7 @@
{%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" itemprop="author"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p>
+ <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%}