Add facebook Open Graph Url and image. Fix PATH env conflict with Vercel environment

This commit is contained in:
txs
2022-04-04 08:13:18 +08:00
parent 305a476f6f
commit ebdaf4273f
33 changed files with 901 additions and 469 deletions

View File

@@ -10,13 +10,14 @@ const ArchiveIndex = props => {
const meta = {
title: `${locale.NAV.ARCHIVE} | ${siteInfo.title}`,
description: siteInfo.description,
slug: 'archive',
type: 'website'
}
return <ThemeComponents.LayoutArchive {...props} meta={meta}/>
return <ThemeComponents.LayoutArchive {...props} meta={meta} />
}
export async function getStaticProps () {
export async function getStaticProps() {
const props = await getGlobalNotionData({ from: 'archive-index' })
props.posts = props.allPosts
return {