diff templates/default/doc/doc.html @ 10:0e9e97777fe0

doc: `-` in doc name is replace by `/`: this is needed for Cagou which is deskop/mobile frontend.
author Goffi <goffi@goffi.org>
date Fri, 23 Apr 2021 11:04:23 +0200
parents dc880664a8ec
children
line wrap: on
line diff
--- a/templates/default/doc/doc.html	Fri Apr 23 11:01:24 2021 +0200
+++ b/templates/default/doc/doc.html	Fri Apr 23 11:04:23 2021 +0200
@@ -13,7 +13,7 @@
         <div class="tabs">
             <ul>
                 {% for name in all_docs %}
-                    <li class="{{"is-active" if name == doc_name}}"><a href="{{page_url}}/{{name}}">{{name}}</a></li>
+                    <li class="{{"is-active" if name == doc_name}}"><a href="{{page_url}}/{{name}}">{{name|replace('-', '/')}}</a></li>
                 {% endfor %}
             </ul>
         </div>