mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
3f6834dfec
This example app shows you how to set up sitemap.xml and robots.txt files for proper indexing by search engine bots.
26 lines
519 B
JavaScript
26 lines
519 B
JavaScript
/* eslint-disable */
|
|
import React from 'react'
|
|
import Head from 'next/head'
|
|
|
|
function Index () {
|
|
return (
|
|
<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>
|
|
)
|
|
}
|
|
|
|
export default Index
|