refactor: 改用 TypeScript。close #1.
This commit is contained in:
@@ -43,7 +43,6 @@ const siteMetadata = require('../data/siteMetadata')
|
||||
.replace('.md', '')
|
||||
.replace('/feed.xml', '')
|
||||
const route = path === '/index' ? '' : path
|
||||
|
||||
if (page.search('pages/404.') > -1 || page.search(`pages/blog/[...slug].`) > -1) {
|
||||
return
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Adapted from https://github.com/hashicorp/next-remote-watch
|
||||
// Adapated from https://github.com/hashicorp/next-remote-watch
|
||||
// A copy of next-remote-watch with an additional ws reload emitter.
|
||||
// The app listens to the event and triggers a client-side router refresh
|
||||
// see components/ClientReload.js
|
||||
|
Reference in New Issue
Block a user