diff --git a/src/pages/Cantons.vue b/src/pages/Cantons.vue index a59505dd..291771c1 100644 --- a/src/pages/Cantons.vue +++ b/src/pages/Cantons.vue @@ -53,6 +53,7 @@ diff --git a/src/templates/Canton.vue b/src/templates/Canton.vue index 06b52430..6fe7e898 100644 --- a/src/templates/Canton.vue +++ b/src/templates/Canton.vue @@ -97,6 +97,7 @@ import { import Flag from '../assets/flags/Index.vue'; import HolidaysInfoLine from '../components/HolidaysInfoLine.vue'; import HolidaysTable from '../components/HolidaysTable.vue'; +import getMetaInfo from '../helpers/meta'; import YearsSelector from '../components/YearsSelector.vue'; export default { @@ -113,6 +114,19 @@ export default { nextHoliday: false }; }, + metaInfo() { + const lang = this.$i18n.locale; + const route = this.$route.fullPath; + const description = this.$t('seo.description.canton', { + canton: this.$page.canton.name[this.$i18n.locale] + }); + + return getMetaInfo({ + description, + lang, + route + }); + }, methods: { handleFilter(holidays) { this.filteredHolidays = holidays;