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' %}