1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-sitemap-and-robots-express-server/pages/index.js
Kelly Burke 64f3720e7f Update example: with-sitemap-and-robots-express-server (#4579)
I simplified the example by removing `.eslintrc.js` and related packages, as well as `nodemon`. 

I also added a description in the README to address the question by @kachkaev in the original pull request (#4163).
2018-09-04 17:18:05 +02:00

21 lines
434 B
JavaScript

import React from 'react'
import Head from 'next/head'
export default () => (
<div style={{ padding: '10px 45px' }}>
<Head>
<title>Index page</title>
<meta name='description' content='description for indexing bots' />
</Head>
<p>
<a href='/sitemap.xml' target='_blank'>
Sitemap
</a>
<br />
<a href='/robots.txt' target='_blank'>
Robots
</a>
</p>
</div>
)