Skip to content

Commit e96c252

Browse files
authored
Merge pull request #211 from Nextjs-ja-translation/chore/update-advanced-features-ampsupport-adding-amp-components
Chore: AMPコンポーネントの追加ページの更新
2 parents c72bdb7 + 085ab6d commit e96c252

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/advanced-features/amp-support/adding-amp-components.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: AMPコミュニティのコンポーネントを追加して、よ
44

55
# AMPコンポーネントの追加
66

7-
AMPコミュニティは、よりインタラクティブなAMPページを作成するのに役立つ [たくさんのコンポーネント](https://amp.dev/documentation/components/) を提供しています。 Next.js はページで使用されるすべてのコンポーネントを自動的にインポートするので、AMPコンポーネントのスクリプトを手動でインポートする必要はありません:
7+
AMP コミュニティは、よりインタラクティブな AMP ページを作成するのに役立つ [たくさんのコンポーネント](https://amp.dev/documentation/components/) を提供しています。 Next.js はページで使用されるすべてのコンポーネントを自動的にインポートするので、AMP コンポーネントのスクリプトを手動でインポートする必要はありません:
88

99
```jsx
1010
export const config = { amp: true };
@@ -49,7 +49,12 @@ function MyAmpPage() {
4949
</Head>
5050

5151
<p>Some time: {date.toJSON()}</p>
52-
<amp-timeago width="0" height="15" datetime={date.toJSON()} layout="responsive">
52+
<amp-timeago
53+
width="0"
54+
height="15"
55+
datetime={date.toJSON()}
56+
layout="responsive"
57+
>
5358
.
5459
</amp-timeago>
5560
</div>

0 commit comments

Comments
 (0)