Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
fix: OGP情報を栃木県のものに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
origamium committed Apr 6, 2020
1 parent a642e47 commit 123b2c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
22 changes: 11 additions & 11 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default Vue.extend({
link: [
{
rel: 'canonical',
href: `https://stopcovid19.metro.tokyo.lg.jp${this.$route.path}`
href: `https://covid-19-tochigi.origamium.net${this.$route.path}`
},
{
rel: 'stylesheet',
Expand All @@ -108,7 +108,7 @@ export default Vue.extend({
{
hid: 'author',
name: 'author',
content: this.$tc('東京都')
content: this.$tc('(非公式)栃木県')
},
{
hid: 'description',
Expand All @@ -117,32 +117,32 @@ export default Vue.extend({
convertDateToSimpleFormat(Data.lastUpdate) +
' 更新: ' +
this.$tc(
'当サイトは新型コロナウイルス感染症 (COVID-19) に関する最新情報を提供するために、東京都が開設したものです。'
'当サイトは栃木県における新型コロナウイルス感染症 (COVID-19) に関する最新情報を提供するために、東京都が開設したものに変更を加え公開しているものです'
)
},
{
hid: 'og:site_name',
property: 'og:site_name',
content:
this.$t('東京都') +
this.$t('栃木県') +
' ' +
this.$t('新型コロナウイルス感染症') +
this.$t('非公式新型コロナウイルス感染症') +
' ' +
this.$t('対策サイト')
},
{
hid: 'og:url',
property: 'og:url',
content: `https://stopcovid19.metro.tokyo.lg.jp${this.$route.path}`
content: `https://covid-19-tochigi.origamium.net${this.$route.path}`
},
ogLocale,
{
hid: 'og:title',
property: 'og:title',
content:
this.$t('東京都') +
this.$t('栃木県') +
' ' +
this.$t('新型コロナウイルス感染症') +
this.$t('非公式新型コロナウイルス感染症') +
' ' +
this.$t('対策サイト')
},
Expand All @@ -153,7 +153,7 @@ export default Vue.extend({
convertDateToSimpleFormat(Data.lastUpdate) +
' 更新: ' +
this.$tc(
'当サイトは新型コロナウイルス感染症 (COVID-19) に関する最新情報を提供するために、東京都が開設したものです。'
'当サイトは栃木県における新型コロナウイルス感染症 (COVID-19) に関する最新情報を提供するために、東京都が開設したものに変更を加え公開しているものです'
)
},
{
Expand All @@ -165,9 +165,9 @@ export default Vue.extend({
hid: 'apple-mobile-web-app-title',
name: 'apple-mobile-web-app-title',
content:
this.$t('東京都') +
this.$t('栃木県') +
' ' +
this.$t('新型コロナウイルス感染症') +
this.$t('非公式新型コロナウイルス感染症') +
' ' +
this.$t('対策サイト')
},
Expand Down
20 changes: 1 addition & 19 deletions pages/cards/_card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,15 @@
<confirmed-cases-attributes-card
v-else-if="this.$route.params.card == 'attributes-of-confirmed-cases'"
/>
<tested-number-card
v-else-if="this.$route.params.card == 'number-of-tested'"
/>
<inspection-persons-number-card
v-else-if="this.$route.params.card == 'number-of-inspection-persons'"
/>
<telephone-advisory-reports-number-card
v-else-if="
this.$route.params.card ==
'number-of-reports-to-covid19-telephone-advisory-center'
"
/>
<consultation-desk-reports-number-card
v-else-if="
this.$route.params.card ==
'number-of-reports-to-covid19-consultation-desk'
"
/>
<metro-card
v-else-if="
this.$route.params.card == 'predicted-number-of-toei-subway-passengers'
"
/>
<agency-card v-else-if="this.$route.params.card == 'agency'" />
</div>
</template>
Expand All @@ -45,9 +31,7 @@ import ConfirmedCasesDetailsCard from '@/components/cards/ConfirmedCasesDetailsC
import TestedCasesDetailsCard from '@/components/cards/TestedCasesDetailsCard.vue'
import ConfirmedCasesNumberCard from '@/components/cards/ConfirmedCasesNumberCard.vue'
import ConfirmedCasesAttributesCard from '@/components/cards/ConfirmedCasesAttributesCard.vue'
import TestedNumberCard from '@/components/cards/TestedNumberCard.vue'
import InspectionPersonsNumberCard from '@/components/cards/InspectionPersonsNumberCard.vue'
import TelephoneAdvisoryReportsNumberCard from '@/components/cards/TelephoneAdvisoryReportsNumberCard.vue'
import ConsultationDeskReportsNumberCard from '@/components/cards/ConsultationDeskReportsNumberCard.vue'
export default {
Expand All @@ -56,9 +40,7 @@ export default {
TestedCasesDetailsCard,
ConfirmedCasesNumberCard,
ConfirmedCasesAttributesCard,
TestedNumberCard,
InspectionPersonsNumberCard,
TelephoneAdvisoryReportsNumberCard,
ConsultationDeskReportsNumberCard
},
data() {
Expand Down Expand Up @@ -92,7 +74,7 @@ export default {
? `${url}/ogp/${this.$route.params.card}.png?t=${timestamp}`
: `${url}/ogp/${this.$i18n.locale}/${this.$route.params.card}.png?t=${timestamp}`
const description = `${this.updatedAt} | ${this.$t(
'当サイトは新型コロナウイルス感染症 (COVID-19) に関する最新情報を提供するために、東京都が開設したものをもとに作成したものです。'
'当サイトは栃木県における新型コロナウイルス感染症 (COVID-19) に関する最新情報を提供するために、東京都が開設したものに変更を加え公開しているものです'
)}`
return {
Expand Down

1 comment on commit 123b2c7

@vercel
Copy link

@vercel vercel bot commented on 123b2c7 Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.