Fix privacy policy link (#1931)

The link to the privact policy was loading the fourth title because `titles[3]` is gonna be the fourth element in the array. Since there are only three in the array and the third in `en_gb` is 'Privacy Policy', I'm gonna assume that it's meant to be `titles[2]`.

I make this mistake a lot myself.
This commit is contained in:
Pr0x1mas 2021-11-18 07:17:06 +00:00 committed by GitHub
parent 7130022081
commit 9a89df6b8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,4 +2,4 @@
{% assign split_path = page.path | split: "/" %} {% assign split_path = page.path | split: "/" %}
{% assign locale = split_path[1] %} {% assign locale = split_path[1] %}
{% assign titles = site.data.navigation[locale].footer %} {% assign titles = site.data.navigation[locale].footer %}
<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }} - <a href="https://github.com/hacks-guide/Guide_3DS">{{ titles[0].title }}</a> - <a href="site-navigation">{{ titles[1].title }}</a> - <a href="privacy-policy">{{ titles[3].title }}</a></div> <div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }} - <a href="https://github.com/hacks-guide/Guide_3DS">{{ titles[0].title }}</a> - <a href="site-navigation">{{ titles[1].title }}</a> - <a href="privacy-policy">{{ titles[2].title }}</a></div>