From c9e27c471a4d3f5dba47a7aeaf8d408294e38b9f Mon Sep 17 00:00:00 2001 From: Ori Date: Tue, 18 Feb 2020 23:49:01 -0500 Subject: Include front matter in home and list pages if provided Contents in `_index.md` files will be used if the relevant files exist, per hugo documentation: https://gohugo.io/templates/lists/#add-content-and-front-matter-to-list-pages --- layouts/_default/list.html | 2 ++ layouts/_default/terms.html | 4 +++- layouts/index.html | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a04ec31..c110ca8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,6 +12,8 @@

All articles

{{ end }} + {{ with .Content }}{{ . }}{{ end }} +