【文件属性】:
文件名称:create-your-blog
文件大小:3KB
文件格式:ZIP
更新时间:2021-03-18 03:06:49
建立您的网志
创建一个新的Next.js应用
npx create-next-app
添加siteconfig.json
{
" title " : " myblog.com " ,
" description " : " This is cool "
}
资料夹结构
components/
pages/
post/
posts/
public/
static/
主页
const Index = ( { title , description } ) => {
return < div> Hello, world! < / div >
}
export default Index
export const getStaticProps = async ( ) => {
const configData = await import ( "../siteconfi
【文件预览】:
create-your-blog-main
----README.md(8KB)