rsnext/examples/with-sitemap-and-robots-express-server/pages/index.js
Kelly Burke 3f6834dfec sitemap.xml and robots.txt example (#4163)
This example app shows you how to set up sitemap.xml and robots.txt files for proper indexing by search engine bots.
2018-05-25 14:01:32 +02:00

25 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