From 4fa02327159d7f313a0923821988202e087565ee Mon Sep 17 00:00:00 2001 From: Aliaksandr Zahatski Date: Wed, 10 Jan 2024 18:51:50 +0100 Subject: [PATCH] fix build error --- CHANGELOG.pod6 | 2 ++ package.json | 2 +- src/pages/_app.tsx | 4 ++-- src/utils/rss.tsx | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.pod6 b/CHANGELOG.pod6 index c7fbc5a..9b6cfca 100644 --- a/CHANGELOG.pod6 +++ b/CHANGELOG.pod6 @@ -1,6 +1,8 @@ =TITLE CHANGES =head1 Upcoming +=head1 0.1.12 + =item * fix build error =head1 0.1.11 =item * fix styles for =table, =nested and =code =item * update dependencies diff --git a/package.json b/package.json index 1d3dbf7..f297123 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "podlite-web", "description": "A minimal, lightweight starter for creating static blogs/sites using nexjs and Podlite markup language", - "version": "0.1.11", + "version": "0.1.12", "private": true, "scripts": { "next_dev": "next dev", diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index a8160ae..e49765a 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -3,7 +3,7 @@ import * as img from "../../built/images" import Head from "next/head" import type { AppProps } from "next/app" import { contentData, getSiteInfo } from "../utils" -import { getFromTree, getTextContentFromNode } from "@podlite/schema" +import { getFromTree, getTextContentFromNode,Image } from "@podlite/schema" function MyApp({ Component, pageProps }: AppProps) { const {slug = []} = pageProps @@ -14,7 +14,7 @@ function MyApp({ Component, pageProps }: AppProps) { const item: any = contentData().find(checkSlug(slug)) const {title:siteTitle, url } = getSiteInfo() const title = `${item?.title || ''} ${siteTitle}` - const [image] = getFromTree(item?.node, {type:"image"}) + const [image] = getFromTree(item?.node, {type:"image"}) as Array const metaImage = image?.src || null const description = getTextContentFromNode(item?.description || []) || title const resultUrl = url || '' diff --git a/src/utils/rss.tsx b/src/utils/rss.tsx index 9bb4fef..5837ab5 100644 --- a/src/utils/rss.tsx +++ b/src/utils/rss.tsx @@ -24,7 +24,7 @@ ${pages ${conf.url}${post.publishUrl} ${new Date(post.pubdate).toUTCString()} ${convertPodNodeToHtml(post.description)}

+

${convertPodNodeToHtml(post.description || '')}

]]>
`