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

@ -19,12 +19,15 @@
# in the templates via {{ site.myvariable }}.
title: Digital Garden
email: project.digitalgarden@hypha.coop
email: hello@hypha.coop
description: >- # this means to ignore newlines until "baseurl:"
A digital garden or public notebook for The Bentways Digital and/as Public Space Micro-Residency.
baseurl: "/" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
# Layout
excerpt_separator: "<!--more-->"
# Build settings
plugins:
- jekyll-feed

View File

@ -1,3 +1,5 @@
---
layout: default
---
{{ content }}

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>