~xdavidwu/xdavidwu.link

57d9898e1421592cb0cc6b6a812b7ac55b9cc9a2 — Mark Crossfield 5 years ago c59c98f
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.
1 files changed, 2 insertions(+), 0 deletions(-)

M _layouts/home.html
M _layouts/home.html => _layouts/home.html +2 -0
@@ 2,6 2,8 @@
layout: archive
---

{{ content }}

<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>

{% for post in paginator.posts %}