From 89be30578cf3559357ec66ce49e5f2f73f327615 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 7 Jun 2022 13:40:02 +0200 Subject: [PATCH] feat: add support for hugo summary (#315) --- ansibledoctor/templates/hugo-book/index.md.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansibledoctor/templates/hugo-book/index.md.j2 b/ansibledoctor/templates/hugo-book/index.md.j2 index 5340872..caee70a 100644 --- a/ansibledoctor/templates/hugo-book/index.md.j2 +++ b/ansibledoctor/templates/hugo-book/index.md.j2 @@ -3,6 +3,9 @@ --- title: {{ meta.name.value | save_join(" ") }} type: docs +{% if summary | deep_get(meta, "summary.value") %} +summary: {{ meta.summary.value | save_join(" ") }} +{% endif %} --- {% endif %} {% if description | deep_get(meta, "description.value") %} @@ -10,6 +13,8 @@ type: docs {{ meta.description.value | save_join(" ") }} {% endif %} + + {# TOC #} {% include '_toc.j2' %}