feat: add support for hugo summary (#315)

This commit is contained in:
Robert Kaussow 2022-06-07 13:40:02 +02:00 committed by GitHub
parent 4e2801d1ce
commit 89be30578c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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