Download next.js/test/integration/amphtml/pages/manual-rels.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/manual-rels.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/amphtml/pages/manual-rels.js
-
curl -L -o manual-rels.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/manual-rels.js
317 Bytes
| import Head from 'next/head' | |
| import { useAmp } from 'next/amp' | |
| export const config = { amp: 'hybrid' } | |
| export default () => ( | |
| <> | |
| <Head> | |
| {!useAmp() && <link rel="amphtml" href="/my-custom-amphtml" />} | |
| <link rel="canonical" href="/my-custom-canonical" /> | |
| </Head> | |
| <p>Hello world</p> | |
| </> | |
| ) | |