From b28e40ed15eb7abb786e5daae55be43823033310 Mon Sep 17 00:00:00 2001 From: Geoffrey Arthaud <geoffrey.arthaud@developpement-durable.gouv.fr> Date: Wed, 31 Jul 2024 15:09:48 +0200 Subject: [PATCH] fix: :bug: Fix #27 by using standard page.edit_url computed by Mkdocs --- dsfr/nav.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsfr/nav.html b/dsfr/nav.html index 9588b85..5f43174 100644 --- a/dsfr/nav.html +++ b/dsfr/nav.html @@ -21,8 +21,8 @@ {% endif %} {% endfor %} </ul> - {% if page.file and config.repo_url and config.edit_uri and config.theme.afficher_bouton_editer %} - <a href="{{ config.repo_url }}{{ config.edit_uri }}{{ page.file.src_path }}" target="_blank" rel="noopener"> + {% if page.edit_url and config.theme.afficher_bouton_editer %} + <a href="{{ page.edit_url }}" target="_blank" rel="noopener"> {{ config.theme.libelle_bouton_editer }} </a> {% endif %} -- GitLab