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

40 lines
937 B
Plaintext
Raw Permalink Normal View History

2019-11-27 13:11:43 +00:00
{% if not append | deep_get(role, "internal.append") %}
2019-11-26 15:40:55 +00:00
{% set meta = role.meta | default({}) %}
---
title: {{ meta.name.value | safe_join(" ") }}
2019-11-27 13:11:43 +00:00
type: docs
{% if summary | deep_get(meta, "summary.value") %}
summary: {{ meta.summary.value | safe_join(" ") }}
{% endif %}
2019-11-26 15:40:55 +00:00
---
2019-11-27 13:11:43 +00:00
{% endif %}
2019-11-26 15:40:55 +00:00
{% if description | deep_get(meta, "description.value") %}
{% set description = [meta.description.value] if meta.description.value is string else meta.description.value %}
2019-12-02 14:00:32 +00:00
{{ description | map("replace", "\n\n", "\n") | safe_join("\n") }}
2019-11-26 15:40:55 +00:00
{% endif %}
<!--more-->
2019-11-26 15:40:55 +00:00
{# TOC #}
{% include '_toc.j2' +%}
2019-11-26 15:40:55 +00:00
{# Requirements #}
{% include '_requirements.j2' %}
2019-11-26 15:40:55 +00:00
{# Vars #}
{% if options.tabulate_vars %}
{% include '_vars_tabulated.j2' %}
{% else %}
{% include '_vars.j2' %}
{% endif %}
{# Tag #}
{% include '_tag.j2' %}
{# Todo #}
{% include '_todo.j2' %}
2019-11-26 15:40:55 +00:00
{# Meta #}
{% include '_meta.j2' %}