show posts on homepage

This commit is contained in:
dcwalk
2021-03-09 09:40:24 -05:00
parent 3b2ea39b8f
commit bc66a27cc0
3 changed files with 31 additions and 4 deletions

View File

@ -1,6 +1,28 @@
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
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>