Schema tweaks

This commit is contained in:
Danny Berger
2014-12-05 21:38:34 -07:00
parent 2488ed3c5d
commit e3945ab16b
7 changed files with 47 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
<div class="list-gallery"> <div class="list-gallery">
{% capture path %}gallery/{{ include.gallery }}{% endcapture %} {% capture path %}gallery/{{ include.gallery }}{% endcapture %}
{% loopdir path:path match:"*.md" sort:"ordering" %}<a href="/{{ item.fullname }}.html"><img alt="Photo: {{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.fullname }}~200x200.jpg" title="{{ item.title }}" width="200" /></a>{% endloopdir %} {% loopdir path:path match:"*.md" sort:"ordering" %}<span itemprop="image" itemscope itemtype="http://schema.org/Photograph"><a href="/{{ item.fullname }}.html" itemprop="url"><img alt="Photo: {{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.fullname }}~200x200.jpg" title="{{ item.title }}" width="200" /></a></span>{% endloopdir %}
</div> </div>

View File

@@ -1,2 +1,2 @@
{% capture path %}gallery/{{ include.gallery }}{% endcapture %} {% capture path %}gallery/{{ include.gallery }}{% endcapture %}
{% loopdir path:path match:"*.md" sort:"ordering" %}<a href="/{{ item.fullname }}.html"><img alt="Photo: {{ item.title }}" src="{{ site.asset_prefix }}/{{ item.fullname }}~640w.jpg" title="{{ item.title }}" width="640" /></a>{% endloopdir %} {% loopdir path:path match:"*.md" sort:"ordering" %}<span itemprop="image" itemscope itemtype="http://schema.org/Photograph"><a href="/{{ item.fullname }}.html" itemprop="url"><img alt="Photo: {{ item.title }}" src="{{ site.asset_prefix }}/{{ item.fullname }}~640w.jpg" title="{{ item.title }}" width="640" /></a></span>{% endloopdir %}

View File

@@ -0,0 +1,13 @@
{% include header.html %}
<section itemscope itemtype="http://schema.org/ImageGallery">
<header>
<div class="timeline"></div>
<h1>
<span itemprop="name">{{ page.title }}</span>
</h1>
</header>
<section class="post-content">
{{ content }}
</section>
</section>
{% include footer.html %}

View File

@@ -1,5 +1,5 @@
{% include header.html %} {% include header.html %}
<section> <section itemscope itemtype="http://schema.org/Photograph">
<header> <header>
<div class="timeline"> <div class="timeline">
{% if page.date %} {% if page.date %}
@@ -26,8 +26,10 @@
{% endif %} {% endif %}
</ul> </ul>
<h1> <h1>
{{ page.title }} <span itemprop="name">{{ page.title }}</span>
{% if page.date %}
<small class="print-only">{{ page.date|date:'%A, %B %d, %Y' }}</small> <small class="print-only">{{ page.date|date:'%A, %B %d, %Y' }}</small>
{% endif %}
</h1> </h1>
</header> </header>
<section class="post-content"> <section class="post-content">
@@ -35,14 +37,18 @@
<img alt="Photo: {{ page.title }}" src="{{ site.asset_prefix }}{{ page.url|replace:".html","~640w.jpg" }}" style="max-width:630px;" /> <img alt="Photo: {{ page.title }}" src="{{ site.asset_prefix }}{{ page.url|replace:".html","~640w.jpg" }}" style="max-width:630px;" />
</p> </p>
{% if content %}
<div itemprop="description">
{{ content }} {{ content }}
</div>
{% endif %}
</section> </section>
<div class="meta"> <div class="meta">
<div class="meta-properties"> <div class="meta-properties">
<div style="float:left;width:352px;"> <div style="float:left;width:352px;">
<dl style="margin-top:0;"> <dl style="margin-top:0;">
<dt>Date</dt> <dt>Date</dt>
<dd>{{ page.date|date:'%A, %B %d at %I:%M %p'|replace:' 0',' '|replace:' AM',' am'|replace:' PM',' pm' }} <dd itemprop="dateCreated" content="{{ page.date|date:'%FT%TZ' }}">{{ page.date|date:'%A, %B %d at %I:%M %p'|replace:' 0',' '|replace:' AM',' am'|replace:' PM',' pm' }}
<dt>Camera</dt> <dt>Camera</dt>
<dd>{{ page.exif.make }} {{ page.exif.model }} <dd>{{ page.exif.make }} {{ page.exif.model }}
@@ -58,7 +64,11 @@
<dd> <dd>
{% for size in page.sizes %} {% for size in page.sizes %}
{% if 0 < forloop.index0 %}&nbsp;&middot;&nbsp;{% endif %} {% if 0 < forloop.index0 %}&nbsp;&middot;&nbsp;{% endif %}
<a href="{{ site.asset_prefix }}{{ page.url|replace:".html","" }}~{{ size[0] }}.jpg">{{ size[1].width }}x{{size[1].height }}</a> <span itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<meta itemprop="height" content="{{ size[1].height }}" />
<meta itemprop="width" content="{{ size[1].width }}" />
<a href="{{ site.asset_prefix }}{{ page.url|replace:".html","" }}~{{ size[0] }}.jpg" itemprop="contentUrl">{{ size[1].width }}x{{size[1].height }}</a>
</span>
{% endfor %} {% endfor %}
</dd> </dd>
{% endif %} {% endif %}
@@ -66,7 +76,11 @@
</div> </div>
{% if page.location %} {% if page.location %}
<div style="float:left;line-height:0;margin-left:7px;width:280px;"> <div style="float:left;line-height:0;margin-left:7px;width:280px;" itemprop="contentLocation" itemscope itemtype="http://schema.org/Place">
<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
<meta itemprop="latitude" content="{{ page.location.latitude }}" />
<meta itemprop="longitude" content="{{ page.location.longitude }}" />
</span>
<a href="https://maps.google.com/maps?hl=en&amp;ll={{ page.location.latitude }},{{ page.location.longitude }}&amp;t=w&amp;z=12"><img alt="map" height="173" src="https://maps.googleapis.com/maps/api/staticmap?center={{ page.location.latitude }},{{ page.location.longitude }}&amp;zoom=13&amp;size=280x173&amp;markers=size:mid%7Ccolor:orange%7C{{ page.location.latitude }},{{ page.location.longitude }}&amp;sensor=false" title="{{ page.location.title }}" width="280" /></a> <a href="https://maps.google.com/maps?hl=en&amp;ll={{ page.location.latitude }},{{ page.location.longitude }}&amp;t=w&amp;z=12"><img alt="map" height="173" src="https://maps.googleapis.com/maps/api/staticmap?center={{ page.location.latitude }},{{ page.location.longitude }}&amp;zoom=13&amp;size=280x173&amp;markers=size:mid%7Ccolor:orange%7C{{ page.location.latitude }},{{ page.location.longitude }}&amp;sensor=false" title="{{ page.location.title }}" width="280" /></a>
</div> </div>
{% endif %} {% endif %}

View File

@@ -1,5 +1,5 @@
{% include header.html %} {% include header.html %}
<section> <section itemscope itemtype="http://schema.org/BlogPosting">
<header> <header>
<div class="timeline"> <div class="timeline">
{% if page.date %} {% if page.date %}
@@ -16,11 +16,11 @@
</div> </div>
<h1> <h1>
{{ page.title }} <span itemprop="name">{{ page.title }}</span>
<small class="print-only">{{ page.date|date:'%A, %B %d, %Y' }}</small> <small class="print-only" itemprop="datePublished" content="{{ page.date|date:'%F') }}">{{ page.date|date:'%A, %B %d, %Y' }}</small>
</h1> </h1>
</header> </header>
<section class="post-content"> <section class="post-content" itemprop="articleBody">
{{ content }} {{ content }}
</section> </section>
<div class="meta"> <div class="meta">

View File

@@ -1,5 +1,5 @@
--- ---
layout: post layout: gallery-list
title: Colorado Aspens title: Colorado Aspens
--- ---

View File

@@ -1,10 +1,12 @@
--- ---
layout: post layout: gallery-list
title : London &amp; Iceland Trip title : London &amp; Iceland Trip
--- ---
<div itemprop="description">
<p> <p>
Some photos from my trip to London and Iceland. See them <a href="map.html">on a map</a>, too. Some photos from my trip to London and Iceland. See them <a href="map.html">on a map</a>, too.
</p> </p>
</div>
{% include gallery_list.html gallery='2014-london-iceland-trip' %} {% include gallery_list.html gallery='2014-london-iceland-trip' %}