Skip to content

Commit 4fa0232

Browse files
committed
fix build error
1 parent bde1b22 commit 4fa0232

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.pod6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
=TITLE CHANGES
22
33
=head1 Upcoming
4+
=head1 0.1.12
5+
=item * fix build error
46
=head1 0.1.11
57
=item * fix styles for =table, =nested and =code
68
=item * update dependencies

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "podlite-web",
33
"description": "A minimal, lightweight starter for creating static blogs/sites using nexjs and Podlite markup language",
4-
"version": "0.1.11",
4+
"version": "0.1.12",
55
"private": true,
66
"scripts": {
77
"next_dev": "next dev",

src/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as img from "../../built/images"
33
import Head from "next/head"
44
import type { AppProps } from "next/app"
55
import { contentData, getSiteInfo } from "../utils"
6-
import { getFromTree, getTextContentFromNode } from "@podlite/schema"
6+
import { getFromTree, getTextContentFromNode,Image } from "@podlite/schema"
77

88
function MyApp({ Component, pageProps }: AppProps) {
99
const {slug = []} = pageProps
@@ -14,7 +14,7 @@ function MyApp({ Component, pageProps }: AppProps) {
1414
const item: any = contentData().find(checkSlug(slug))
1515
const {title:siteTitle, url } = getSiteInfo()
1616
const title = `${item?.title || ''} ${siteTitle}`
17-
const [image] = getFromTree(item?.node, {type:"image"})
17+
const [image] = getFromTree(item?.node, {type:"image"}) as Array<Image>
1818
const metaImage = image?.src || null
1919
const description = getTextContentFromNode(item?.description || []) || title
2020
const resultUrl = url || ''

src/utils/rss.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ${pages
2424
<guid>${conf.url}${post.publishUrl}</guid>
2525
<pubDate>${new Date(post.pubdate).toUTCString()}</pubDate>
2626
<description><![CDATA[
27-
<p>${convertPodNodeToHtml(post.description)}</p>
27+
<p>${convertPodNodeToHtml(post.description || '')}</p>
2828
</p>
2929
]]></description>
3030
</item>`

0 commit comments

Comments
 (0)