From adcfdb48b82a16a28b8a640963c76bd963e0043b Mon Sep 17 00:00:00 2001 From: Ori Date: Tue, 18 Feb 2020 23:49:01 -0500 Subject: [PATCH] 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 a04ec31c..c110ca88 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,6 +12,8 @@

Entries tagged - "{{ .Data.Term }}"

All articles

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