From 4a1e462229207e0eaa73314623435ac1a5c1de17 Mon Sep 17 00:00:00 2001 From: dcwalk Date: Tue, 9 Mar 2021 09:44:44 -0500 Subject: [PATCH] move where layout happens --- _layouts/home.html | 25 ++++++++++++++++++++++++- index.md | 25 ------------------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 5e71126..a06e091 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -2,4 +2,27 @@ layout: default --- -{{ content }} + + +
+{% 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 %} +
diff --git a/index.md b/index.md index bebb603..e4d427d 100644 --- a/index.md +++ b/index.md @@ -1,28 +1,3 @@ --- 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 %} -