Skip to content

Commit

Permalink
Merge pull request #405 from fronteers/388-edit-this-page
Browse files Browse the repository at this point in the history
#388 translate edit this page, add link to more pages
  • Loading branch information
edwinm authored Oct 22, 2024
2 parents 328436f + 5bc8e8e commit 24d173b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/_data/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
opensubmenu: "Open submenu",
closesubmenu: "Close submenu",
skiplink: "Skip to main content",
editThisPage: "Edit this page on GitHub",
blockTitles: {
homeHero: "We unite front-end developers",
upcomingActivities: "Upcoming activities",
Expand Down Expand Up @@ -106,6 +107,7 @@ module.exports = {
opensubmenu: "Open submenu",
closesubmenu: "Sluit submenu",
skiplink: "Sla het menu over",
editThisPage: "Pas deze pagina aan via GitHub",
blockTitles: {
homeHero: "We unite front-end developers",
upcomingActivities: "Activiteiten",
Expand Down
2 changes: 2 additions & 0 deletions src/_includes/layouts/home.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

<!-- {%- include partials/homepage/member-special headerlvl:"h2" partialTitle:translations[locale].blockTitles.membersSpecial -%} -->
</main>

{%- include partials/utility/edit-this-page -%}

{%- include partials/page-footer/_page-footer -%}
</body>
Expand Down
2 changes: 2 additions & 0 deletions src/_includes/layouts/page.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
</div>
</main>

{%- include partials/utility/edit-this-page -%}

{%- include partials/page-footer/_page-footer -%}
</body>
</html>
4 changes: 3 additions & 1 deletion src/_includes/partials/utility/edit-this-page.liquid
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<aside data-partial="utility/edit-this-page" class="page-edit-wrapper inner-wrapper">
<a href="https://github.com/fronteers/website/blob/main/{{ page.inputPath }}">Edit this page on GitHub</a>
<a href="https://github.com/fronteers/website/blob/main/{{ page.inputPath }}">
{{ translations[locale].editThisPage }}
</a>
</aside>

0 comments on commit 24d173b

Please sign in to comment.