Skip to content

Commit

Permalink
add edit page link in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
hjonin committed Sep 15, 2023
1 parent 526fa2e commit d9ea5a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions _data/i18n/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
copied: "Copied!",
dark_theme: "Dark Theme",
display_params: "Display Parameters",
edit_this_page: "Edit this page",
filter_by_tag: "Filter by Tag:",
filtered_by: "Filtered by",
first_page: "First page",
Expand Down
1 change: 1 addition & 0 deletions _data/i18n/fr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
copied: "Copié !",
dark_theme: "Thème sombre",
display_params: "Paramètres d'affichage",
edit_this_page: "Modifier cette page",
filter_by_tag: "Filtrer par catégorie :",
filtered_by: "Filtré par",
first_page: "Première page",
Expand Down
1 change: 1 addition & 0 deletions _data/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
peertube_url: "",
github_url: "",
sourcehut_url: "",
repository_url: "https://github.com/codegouvfr/eleventy-dsfr",
language: "fr",
description: "baseline - précisions sur l‘organisation",
author: {
Expand Down
3 changes: 3 additions & 0 deletions _includes/templates/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<li class="fr-footer__bottom-item">
<a class="fr-footer__bottom-link" href="/fr/donnees-personnelles/">{{ "personal_data" | i18n }}</a>
</li>
<li class="fr-footer__bottom-item">
<a class="fr-footer__bottom-link fr-icon-pencil-line fr-link--icon-left" href="{{ metadata.repository_url }}/blob/main/{{ page.inputPath }}">{{ "edit_this_page" | i18n }}</a>
</li>
{# <li class="fr-footer__bottom-item">
<a class="fr-footer__bottom-link" href="#">Gestion des cookies</a>
</li> FIXME Uncomment when DSFR cookie component #}
Expand Down

0 comments on commit d9ea5a8

Please sign in to comment.