mirror of
https://github.com/learnk8s/learnk8s.io.git
synced 2026-02-14 16:39:52 +00:00
fixed robots.txt
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
User-agent: *
|
||||
|
||||
Sitemap: https://learnk8s.io/sitemap.xml
|
||||
Disallow: /404/
|
||||
Disallow: /404
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import { writeFileSync, readFileSync, existsSync } from 'fs'
|
||||
import { writeFileSync, readFileSync, existsSync, copyFileSync } from 'fs'
|
||||
import { resolve, extname, basename } from 'path'
|
||||
import { mkdir, cp } from 'shelljs'
|
||||
import { syncEvents } from './eventbrite'
|
||||
@@ -416,6 +416,7 @@ run({
|
||||
})(Sitemap)
|
||||
|
||||
writeFileSync('_site/sitemap.xml', runSiteMap(Sitemap, 'https://learnk8s.io'))
|
||||
copyFileSync('robots.txt', resolve('_site', 'robots.txt'))
|
||||
|
||||
function injectGoogleAnalytics({ $, gaId }: { gaId: string; $: Cheerio }): Cheerio {
|
||||
$.find('head').append(
|
||||
|
||||
Reference in New Issue
Block a user