From 5da553925451033b8649611b714c9c56550c7192 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 27 Nov 2019 15:37:13 +0100 Subject: [PATCH] transform toc anchors to get it working with hugo --- ansibledoctor/templates/hugo-book/_toc.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansibledoctor/templates/hugo-book/_toc.j2 b/ansibledoctor/templates/hugo-book/_toc.j2 index 152f1e8..d0eaee9 100644 --- a/ansibledoctor/templates/hugo-book/_toc.j2 +++ b/ansibledoctor/templates/hugo-book/_toc.j2 @@ -2,7 +2,7 @@ {% if var %} * [Default Variables](#default-variables) {% for key, item in var | dictsort %} - * [{{ key }}](#{{ key }}) + * [{{ key }}](#{{ key | replace("_", "-") }}) {% endfor %} {% endif %} * [Dependencies](#dependencies)