-
Notifications
You must be signed in to change notification settings - Fork 41
/2025 パスでもOGPが出るようにindex.astroページを作成
#180
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 【質問】
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 最適化のためです!あと開発環境でパスエラーが出ていました |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||||||||||||||
| --- | ||||||||||||||||||
| import Layout from '@/layouts/Layout.astro'; | ||||||||||||||||||
| --- | ||||||||||||||||||
| <Layout /> | ||||||||||||||||||
|
|
||||||||||||||||||
| <meta http-equiv="refresh" content="0;url=/2025/ja" /> | ||||||||||||||||||
|
||||||||||||||||||
| <Layout /> | |
| <meta http-equiv="refresh" content="0;url=/2025/ja" /> | |
| <Layout> | |
| <Fragment slot="header"> | |
| <meta http-equiv="refresh" content="0;url=/2025/ja" /> | |
| </Fragment> | |
| </Layout> |
astro wayに乗るならこういった書き方もできます
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.
【質問&提案】
metaタグでredirectするのであれば
astro.configのredirect指定は不要かと思ったんですが、ブラウザによってはうまく動作しないといったことがあるんでしょうか?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.
念のため残しておきました。もし消しても問題ないなら消してしまってもいいかもしれないですね