Skip to content

Commit

Permalink
Reindent layout (jekyll#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
jekyllbot authored and DirtyF committed Jan 27, 2018
1 parent 3960a68 commit 9412df9
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ <h1 class="page-heading">{{ page.title }}</h1>
{{ content }}

{% if site.posts.size > 0 %}
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
<ul class="post-list">
{% for post in site.posts %}
<li>
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h3>
{% if site.show_excerpts %}
{{ post.excerpt }}
{% endif %}
</li>
<li>
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{% if site.show_excerpts %}
{{ post.excerpt }}
{% endif %}
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
</ul>

<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
{% endif %}

</div>

0 comments on commit 9412df9

Please sign in to comment.