import Document, { Html, Head, Main, NextScript } from 'next/document' import BLOG from '@/blog.config' class MyDocument extends Document { static async getInitialProps (ctx) { const initialProps = await Document.getInitialProps(ctx) return { ...initialProps } } render () { return ( {/* 字体 */} {/* */} {/* */} {/* GoogleAdsense */} {BLOG.isProd && ( )} {/* 统计脚本 */} {BLOG.isProd && BLOG.analytics && BLOG.analytics.provider === 'ackee' && (