From bc66a27cc015569f673b27ca39aa9fd99bae39e4 Mon Sep 17 00:00:00 2001 From: dcwalk Date: Tue, 9 Mar 2021 09:40:24 -0500 Subject: [PATCH] show posts on homepage --- _config.yml | 5 ++++- _layouts/home.html | 2 ++ index.md | 28 +++++++++++++++++++++++++--- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 1418838..168c8a1 100644 --- a/_config.yml +++ b/_config.yml @@ -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 Bentway’s 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: "" + # Build settings plugins: - jekyll-feed diff --git a/_layouts/home.html b/_layouts/home.html index 0d6905d..5e71126 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -1,3 +1,5 @@ --- layout: default --- + +{{ content }} diff --git a/index.md b/index.md index 0671507..bebb603 100644 --- a/index.md +++ b/index.md @@ -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 --- + + + +
+{% for post in site.posts %} +
+
+

+ {{ post.title }} +

+

{% if post.excerpt %} + {{ post.excerpt | markdownify | strip_html }} + {% else %} + {{ post.content | markdownify | strip_html | truncate: 160 }} + {% endif %}

+
+
+{% endfor %} +