Update home.html

This commit is contained in:
dcwalk 2021-03-18 21:15:51 -04:00 committed by GitHub
parent 56c0014d4d
commit 648adcf25c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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