Skip to content

Commit

Permalink
🔥 #201 英語と日本語のページを明確に分けて、IPによるコンテンツ書き換えを中止したので canonicalLink を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Sep 27, 2022
1 parent 72a85ba commit 8d0823f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/layouts/DefaultLayout/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { FC, ReactNode } from 'react';
type Props = {
metaTag: MetaTag;
children: ReactNode;
canonicalLink?: Url;
alternateUrls?: {
hreflang: Language;
link?: Url;
Expand All @@ -17,7 +16,6 @@ type Props = {
export const DefaultLayout: FC<Props> = ({
metaTag,
children,
canonicalLink,
alternateUrls,
}) => (
<>
Expand Down Expand Up @@ -52,7 +50,6 @@ export const DefaultLayout: FC<Props> = ({
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="msapplication-config" content="/favicons/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
{canonicalLink ? <link rel="canonical" href={canonicalLink} /> : ''}
{alternateUrls?.map((alternateUrl, index) => (
<link
rel="alternate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ export const TermsOrPrivacyTemplate: FC<Props> = ({
});

return (
<DefaultLayout
metaTag={metaTag}
canonicalLink={canonicalLink}
alternateUrls={alternateUrls}
>
<DefaultLayout metaTag={metaTag} alternateUrls={alternateUrls}>
<OrgTermsOrPrivacyTemplate
type={type}
language={language}
Expand Down
6 changes: 1 addition & 5 deletions src/templates/TopTemplate/TopTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ export const TopTemplate: FC<Props> = ({ language, lgtmImages }) => {
useCatImagesFetcher();

return (
<DefaultLayout
metaTag={metaTag}
canonicalLink={canonicalLink}
alternateUrls={alternateUrls}
>
<DefaultLayout metaTag={metaTag} alternateUrls={alternateUrls}>
<OrgTopTemplate
language={language}
lgtmImages={lgtmImages}
Expand Down
6 changes: 1 addition & 5 deletions src/templates/UploadTemplate/UploadTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ export const UploadTemplate: FC<Props> = ({ language }) => {
const { imageUploader } = useCatImageUploader(language);

return (
<DefaultLayout
metaTag={metaTag}
canonicalLink={canonicalLink}
alternateUrls={alternateUrls}
>
<DefaultLayout metaTag={metaTag} alternateUrls={alternateUrls}>
<OrgUploadTemplate
language={language}
imageValidator={imageValidator}
Expand Down

0 comments on commit 8d0823f

Please sign in to comment.