Tweak SEO

This commit is contained in:
kakkokari-gtyih 2023-12-02 13:49:50 +09:00
parent 55de3ab8b6
commit 96baec0094
3 changed files with 6 additions and 2 deletions

View File

@ -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",

View File

@ -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: "サーバー"

View File

@ -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>