-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ブログ記事詳細ページの title が反映されるように設定 #12
Conversation
yamanoku
commented
Apr 6, 2023
変更前 | 変更後 |
---|---|
![]() | ![]() |
Someone is attempting to deploy a commit to a Personal Account owned by @ushironoko on Vercel. @ushironoko first needs to authorize it. |
src/pages/posts/[id].vue
Outdated
@@ -25,7 +28,7 @@ useHead({ | |||
}, | |||
{ | |||
name: 'twitter:title', | |||
content: data.value?.title ?? 'ushironoko.me', | |||
content: postTitle ?? 'ushironoko.me', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同等の値があったので併せて変数にしておきました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これだったらpostTitle自体を data.value?.contentHtml ?? 'ushironoko.me'
にしたほうがよくないですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contentHtml
=> title
ですかね。たしかに。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
64f65c7 にて変更
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
でもsite_nameはushironoko.meだなー(元々の設定がわるい)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、ほんとだ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b5510c2 で site_name だけ ushironoko.me にしました
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.