ansible-doctor/ansibledoctor/templates/hugo-book/index.md.j2

32 lines
651 B
Django/Jinja

{% if not append | deep_get(role, "internal.append") %}
{% set meta = role.meta | default({}) %}
---
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") %}
{{ meta.description.value | save_join(" ") }}
{% endif %}
<!--more-->
{# TOC #}
{% include '_toc.j2' %}
{# Vars #}
{% include '_vars.j2' %}
{# Todo #}
{% include '_tag.j2' %}
{# Todo #}
{% include '_todo.j2' %}
{# Meta #}
{% include '_meta.j2' %}