move where layout happens

This commit is contained in:
dcwalk 2021-03-09 09:44:44 -05:00
parent 957e47f050
commit 4a1e462229
2 changed files with 24 additions and 26 deletions

View File

@ -2,4 +2,27 @@
layout: default layout: default
--- ---
{{ content }} <ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<section>
{% for post in site.posts %}
<div class="post_excerpt">
<article>
<h2 itemprop="headline">
<a href="{{ post.url | relative_url }}" rel="permalink">{{ post.title }}</a>
</h2>
<p class="excerpt" itemprop="description"><em>{% if post.excerpt %}
{{ post.excerpt | markdownify | strip_html }}
{% else %}
{{ post.content | markdownify | strip_html | truncate: 160 }}
{% endif %}</em></p>
</article>
</div>
{% endfor %}
</section>

View File

@ -1,28 +1,3 @@
--- ---
layout: home layout: home
--- ---
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<section>
{% for post in site.posts %}
<div class="post_excerpt">
<article>
<h2 itemprop="headline">
<a href="{{ post.url | relative_url }}" rel="permalink">{{ post.title }}</a>
</h2>
<p class="excerpt" itemprop="description"><em>{% if post.excerpt %}
{{ post.excerpt | markdownify | strip_html }}
{% else %}
{{ post.content | markdownify | strip_html | truncate: 160 }}
{% endif %}</em></p>
</article>
</div>
{% endfor %}
</section>