Browse Source

feat: add support for hugo summary (#315)

pull/316/head
Robert Kaussow 3 weeks ago committed by GitHub
parent
commit
89be30578c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ansibledoctor/templates/hugo-book/index.md.j2

5
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 %}
<!--more-->
{# TOC #}
{% include '_toc.j2' %}

Loading…
Cancel
Save