From 7f03e0c28419dd2808929efd6c4ff5f96f55c1ff Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 27 Nov 2019 14:11:43 +0100 Subject: [PATCH] rename hugo template --- ansibledoctor/templates/{hugo => hugo-book}/_meta.j2 | 0 ansibledoctor/templates/{hugo => hugo-book}/_toc.j2 | 4 ---- ansibledoctor/templates/{hugo => hugo-book}/_vars.j2 | 0 ansibledoctor/templates/{hugo => hugo-book}/index.md.j2 | 6 ++++-- 4 files changed, 4 insertions(+), 6 deletions(-) rename ansibledoctor/templates/{hugo => hugo-book}/_meta.j2 (100%) rename ansibledoctor/templates/{hugo => hugo-book}/_toc.j2 (77%) rename ansibledoctor/templates/{hugo => hugo-book}/_vars.j2 (100%) rename ansibledoctor/templates/{hugo => hugo-book}/index.md.j2 (71%) 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 %}