Add hreflang=fr attribute to links pointing to French content
This commit is contained in:
parent
4ba2da5799
commit
e5532eb74f
3 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@
|
||||||
%li.fr-footer__bottom-item
|
%li.fr-footer__bottom-item
|
||||||
= link_to t("links.footer.mentions_legales.label"), MENTIONS_LEGALES_URL, class: "fr-footer__bottom-link", rel: "noopener noreferrer"
|
= link_to t("links.footer.mentions_legales.label"), MENTIONS_LEGALES_URL, class: "fr-footer__bottom-link", rel: "noopener noreferrer"
|
||||||
%li.fr-footer__bottom-item
|
%li.fr-footer__bottom-item
|
||||||
= link_to t("links.footer.cookies.label"), suivi_path, class: "fr-footer__bottom-link"
|
= link_to t("links.footer.cookies.label"), suivi_path, class: "fr-footer__bottom-link", hreflang: "fr"
|
||||||
%li.fr-footer__bottom-item
|
%li.fr-footer__bottom-item
|
||||||
%button.fr-footer__bottom-link.fr-icon-theme-fill.fr-btn--icon-left{ aria: {controls: "fr-theme-modal" }, data: {'fr-opened': "false" } }
|
%button.fr-footer__bottom-link.fr-icon-theme-fill.fr-btn--icon-left{ aria: {controls: "fr-theme-modal" }, data: {'fr-opened': "false" } }
|
||||||
= t('links.footer.display_params')
|
= t('links.footer.display_params')
|
||||||
|
|
|
@ -50,14 +50,14 @@
|
||||||
.fr-footer__brand.fr-enlarge-link{ lang: "fr" }
|
.fr-footer__brand.fr-enlarge-link{ lang: "fr" }
|
||||||
%p.fr-logo
|
%p.fr-logo
|
||||||
gouvernement
|
gouvernement
|
||||||
= link_to t("links.footer.dinum.url"), title: t("links.footer.dinum.title"), class: "fr-footer__brand-link" do
|
= link_to t("links.footer.dinum.url"), title: t("links.footer.dinum.title"), hreflang:'fr', class: "fr-footer__brand-link" do
|
||||||
= image_tag("footer/logo-dinum.svg", class: "fr-footer__logo logo-beta-gouv-fr", alt: t("links.footer.dinum.alt"))
|
= image_tag("footer/logo-dinum.svg", class: "fr-footer__logo logo-beta-gouv-fr", alt: t("links.footer.dinum.alt"))
|
||||||
.fr-footer__content
|
.fr-footer__content
|
||||||
%p.fr-footer__content-desc
|
%p.fr-footer__content-desc
|
||||||
= t('links.footer.description_1')
|
= t('links.footer.description_1')
|
||||||
= link_to(t('links.footer.link_1_label'), t('links.footer.link_1_url'), title: new_tab_suffix(t('links.footer.link_1_label')), **external_link_attributes) + "."
|
= link_to(t('links.footer.link_1_label'), t('links.footer.link_1_url'), title: new_tab_suffix(t('links.footer.link_1_label')), hreflang:'fr', **external_link_attributes) + "."
|
||||||
%p.fr-footer__content-desc
|
%p.fr-footer__content-desc
|
||||||
= link_to t('links.footer.link_2_label'), t("links.footer.code.url"), title: new_tab_suffix(t('links.footer.link_2_label')), **external_link_attributes
|
= link_to t('links.footer.link_2_label'), t("links.footer.code.url"), title: new_tab_suffix(t('links.footer.link_2_label')), hreflang:'fr', **external_link_attributes
|
||||||
= t('links.footer.description_2')
|
= t('links.footer.description_2')
|
||||||
= render partial: "shared/footer_content_list"
|
= render partial: "shared/footer_content_list"
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
.fr-footer__bottom-copy
|
.fr-footer__bottom-copy
|
||||||
%p= t("links.footer.copy_html", link: link_to(t("links.footer.license"), "https://github.com/etalab/licence-ouverte/blob/master/LO.md", title: new_tab_suffix(t("links.footer.license")), **external_link_attributes))
|
%p= t("links.footer.copy_html", link: link_to(t("links.footer.license"), "https://github.com/etalab/licence-ouverte/blob/master/LO.md", title: new_tab_suffix(t("links.footer.license")), hreflang: "fr", **external_link_attributes))
|
||||||
|
|
Loading…
Reference in a new issue