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)