Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
zag committed Jan 10, 2024
1 parent bde1b22 commit 4fa0232
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.pod6
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Image>
const metaImage = image?.src || null
const description = getTextContentFromNode(item?.description || []) || title
const resultUrl = url || ''
Expand Down
2 changes: 1 addition & 1 deletion src/utils/rss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ${pages
<guid>${conf.url}${post.publishUrl}</guid>
<pubDate>${new Date(post.pubdate).toUTCString()}</pubDate>
<description><![CDATA[
<p>${convertPodNodeToHtml(post.description)}</p>
<p>${convertPodNodeToHtml(post.description || '')}</p>
</p>
]]></description>
</item>`
Expand Down

0 comments on commit 4fa0232

Please sign in to comment.