Merge branch 'master' into gh-pages
This commit is contained in:
commit
d63c5024db
3 changed files with 16 additions and 6 deletions
|
@ -2,7 +2,7 @@ title: Minimal Mistakes
|
||||||
tagline: Jekyll Theme
|
tagline: Jekyll Theme
|
||||||
description: A responsive Jekyll theme with editorial design tendencies.
|
description: A responsive Jekyll theme with editorial design tendencies.
|
||||||
#Comment out url when working locally to resolve base urls correctly
|
#Comment out url when working locally to resolve base urls correctly
|
||||||
url: http://mmistakes.github.io/minimal-mistakes
|
#url: http://mmistakes.github.io/minimal-mistakes
|
||||||
|
|
||||||
# Owner/author information goes here.
|
# Owner/author information goes here.
|
||||||
owner:
|
owner:
|
||||||
|
|
|
@ -27,11 +27,21 @@
|
||||||
|
|
||||||
<div id="index" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
|
<div id="index" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
|
{% unless post.next %}
|
||||||
<h2 itemprop="headline"><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
|
<h3>{{ post.date | date: '%Y' }}</h3>
|
||||||
<p class="byline"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></p>
|
<hr />
|
||||||
<p itemprop="text">{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
{% else %}
|
||||||
</article>
|
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
||||||
|
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
|
||||||
|
{% if year != nyear %}
|
||||||
|
<h3>{{ post.date | date: '%Y' }}</h3>
|
||||||
|
<hr />
|
||||||
|
{% endif %}
|
||||||
|
{% endunless %}
|
||||||
|
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
|
||||||
|
<h2 itemprop="headline"><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||||
|
<p itemprop="text">{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||||
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div><!-- /#index -->
|
</div><!-- /#index -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue