using a newer version of node

This commit is contained in:
Daniele Polencic
2019-05-29 22:20:08 +08:00
parent aafee2206b
commit b76234b3bf
3 changed files with 3 additions and 1 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
10.15.3

View File

@@ -531,6 +531,7 @@ function optimiseImages({ $, siteUrl }: { $: Cheerio; siteUrl: string }): Cheeri
}
function digest(url: string) {
console.log('>>', url)
ok(existsSync(url), `Asset ${url} doesn't exist.`)
const digest = md5(readFileSync(url, 'utf8'))
mkdir('-p', '_site/a')

View File

@@ -46,7 +46,7 @@ export function render(website: Sitemap, currentNode: LinkedNode<typeof Details>
'@context': 'https://schema.org',
'@type': 'BlogPosting',
headline: currentNode.payload.title,
image: `${siteUrl}${currentNode.payload.previewImage.props.src}`,
image: `${currentNode.payload.previewImage.props.src}`,
author: {
'@type': 'Person',
name: currentNode.payload.author.fullName,