diff --git a/ansibledoctor/templates/hugo/_meta.j2 b/ansibledoctor/templates/hugo-book/_meta.j2 similarity index 100% rename from ansibledoctor/templates/hugo/_meta.j2 rename to ansibledoctor/templates/hugo-book/_meta.j2 diff --git a/ansibledoctor/templates/hugo/_toc.j2 b/ansibledoctor/templates/hugo-book/_toc.j2 similarity index 77% rename from ansibledoctor/templates/hugo/_toc.j2 rename to ansibledoctor/templates/hugo-book/_toc.j2 index 660519e..152f1e8 100644 --- a/ansibledoctor/templates/hugo/_toc.j2 +++ b/ansibledoctor/templates/hugo-book/_toc.j2 @@ -1,5 +1,3 @@ -## Table of content - {% set var = role.var | default({}) %} {% if var %} * [Default Variables](#default-variables) @@ -8,7 +6,5 @@ {% endfor %} {% endif %} * [Dependencies](#dependencies) -* [License](#license) -* [Author](#author) --- diff --git a/ansibledoctor/templates/hugo/_vars.j2 b/ansibledoctor/templates/hugo-book/_vars.j2 similarity index 100% rename from ansibledoctor/templates/hugo/_vars.j2 rename to ansibledoctor/templates/hugo-book/_vars.j2 diff --git a/ansibledoctor/templates/hugo/index.md.j2 b/ansibledoctor/templates/hugo-book/index.md.j2 similarity index 71% rename from ansibledoctor/templates/hugo/index.md.j2 rename to ansibledoctor/templates/hugo-book/index.md.j2 index a31a1f1..7c9a5de 100644 --- a/ansibledoctor/templates/hugo/index.md.j2 +++ b/ansibledoctor/templates/hugo-book/index.md.j2 @@ -1,8 +1,10 @@ +{% if not append | deep_get(role, "internal.append") %} {% set meta = role.meta | default({}) %} --- -title: {{ meta.name.value | save_join(" ") }} +title: {{ meta.name.value | save_join(" ") }} +type: docs --- - +{% endif %} {% if description | deep_get(meta, "description.value") %} {{ meta.description.value | save_join(" ") }} {% endif %}