Skip to content

Commit

Permalink
feat: add main band to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniebmn committed Apr 10, 2024
1 parent 5b3264f commit 29b3063
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/_data/footer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
module.exports = {
en: {
social: 'Social media',
socialurl: 'https://www.canada.ca/en/social.html',
mobile: 'Mobile applications',
mobileurl: 'https://www.canada.ca/en/mobile.html',
about: 'About Canada.ca',
abouturl: 'https://design.canada.ca/about/',
terms: 'Terms and conditions',
termsurl: 'https://www.canada.ca/en/transparency/terms.html',
privacy: 'Privacy',
},
fr: {
social: 'Médias sociaux',
socialurl: 'https://www.canada.ca/fr/sociaux.html',
mobile: 'Applications mobiles',
mobileurl: 'https://www.canada.ca/fr/mobile.html',
about: 'À propos de Canada.ca',
abouturl: 'https://conception.canada.ca/a-propos/',
terms: 'Avis',
termsurl: 'https://www.canada.ca/fr/transparence/avis.html',
privacy: 'Confidentialité',
Expand Down
3 changes: 2 additions & 1 deletion src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@


<gcds-footer
display="full"
lang="{{ locale }}"
sub-links='{ "{{ footer[locale].terms }}": "{{ footer[locale].termsurl }}", "{{ footer[locale].privacy }}": "{{ links.privacy }}" }'
sub-links='{ "{{ footer[locale].social }}": "{{ footer[locale].socialurl }}", "{{ footer[locale].mobile }}": "{{ footer[locale].mobileurl }}", "{{ footer[locale].about }}": "{{ footer[locale].abouturl }}", "{{ footer[locale].terms }}": "{{ footer[locale].termsurl }}", "{{ footer[locale].privacy }}": "{{ links.privacy }}" }'
></gcds-footer>

</div>
Expand Down
3 changes: 2 additions & 1 deletion src/_includes/layouts/home.njk
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@
</main>

<gcds-footer
display="full"
lang="{{ locale }}"
sub-links='{ "{{ footer[locale].terms }}": "{{ footer[locale].termsurl }}", "{{ footer[locale].privacy }}": "{{ links.privacy }}" }'
sub-links='{ "{{ footer[locale].social }}": "{{ footer[locale].socialurl }}", "{{ footer[locale].mobile }}": "{{ footer[locale].mobileurl }}", "{{ footer[locale].about }}": "{{ footer[locale].abouturl }}", "{{ footer[locale].terms }}": "{{ footer[locale].termsurl }}", "{{ footer[locale].privacy }}": "{{ links.privacy }}" }'
></gcds-footer>

</div>
Expand Down

0 comments on commit 29b3063

Please sign in to comment.