From 57d9898e1421592cb0cc6b6a812b7ac55b9cc9a2 Mon Sep 17 00:00:00 2001 From: Mark Crossfield Date: Thu, 9 Aug 2018 14:23:57 +0100 Subject: [PATCH] Add `{{ content }}` to `home` layout (#1775) * Add `{{ content }}` to `home` layout Allow the author to add content which will appear above the list of recent posts. This also allows the `home` layout to be extended. Add text to index.html in tests to indicate that the content appears in the correct spot. * Add paragraph markup Since this is a HTML file, proper paragraph markup is needed. --- _layouts/home.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_layouts/home.html b/_layouts/home.html index bcce92a..d1428eb 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -2,6 +2,8 @@ layout: archive --- +{{ content }} +

{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}

{% for post in paginator.posts %} -- 2.45.2