mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-24 09:49:06 +01:00
Tweak SEO
This commit is contained in:
parent
55de3ab8b6
commit
96baec0094
2
app.vue
2
app.vue
@ -29,7 +29,7 @@ const getDescription = (): string => {
|
|||||||
return t('_seo.defaultDescription');
|
return t('_seo.defaultDescription');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const getTitle = () => route.meta.title ? `${route.meta.title} | ${t('_seo.siteName')}` : t('_seo.siteName');
|
const getTitle = () => route.meta.title ? `${route.meta.title} | ${t('_seo.siteName')}` : t('_seo.siteNameLong');
|
||||||
const getLdJson = (additionalGraphes: Thing[] = []): string => {
|
const getLdJson = (additionalGraphes: Thing[] = []): string => {
|
||||||
const ldJson: Graph = {
|
const ldJson: Graph = {
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
|
@ -5,8 +5,9 @@ clickToExpand: "(クリックして展開)"
|
|||||||
|
|
||||||
_seo:
|
_seo:
|
||||||
siteName: "Misskey Hub"
|
siteName: "Misskey Hub"
|
||||||
|
siteNameLong: "Misskey Hub – Misskeyプロジェクト 公式サイト"
|
||||||
defaultTitleTagline: "ノートでひろがるネットワーク"
|
defaultTitleTagline: "ノートでひろがるネットワーク"
|
||||||
defaultDescription: "Misskeyはオープンソースの分散型ソーシャルネットワーキングプラットフォームです。"
|
defaultDescription: "【ノートでひろがるネットワーク】分散型SNS Misskeyの公式サイト。Misskeyのはじめかたやサーバー一覧など、Misskeyに関する情報が満載!"
|
||||||
|
|
||||||
_nav:
|
_nav:
|
||||||
servers: "サーバー"
|
servers: "サーバー"
|
||||||
|
@ -63,6 +63,9 @@ if (!data.value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
route.meta.title = data.value?.title;
|
route.meta.title = data.value?.title;
|
||||||
|
if (data.value.description) {
|
||||||
|
route.meta.description = data.value.description;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
Loading…
Reference in New Issue
Block a user