File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
= TITLE CHANGES
2
2
3
3
= head1 Upcoming
4
+ = head1 0.1.12
5
+ = item * fix build error
4
6
= head1 0.1.11
5
7
= item * fix styles for =table, =nested and =code
6
8
= item * update dependencies
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " podlite-web" ,
3
3
"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 " ,
5
5
"private" : true ,
6
6
"scripts" : {
7
7
"next_dev" : " next dev" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as img from "../../built/images"
3
3
import Head from "next/head"
4
4
import type { AppProps } from "next/app"
5
5
import { contentData , getSiteInfo } from "../utils"
6
- import { getFromTree , getTextContentFromNode } from "@podlite/schema"
6
+ import { getFromTree , getTextContentFromNode , Image } from "@podlite/schema"
7
7
8
8
function MyApp ( { Component, pageProps } : AppProps ) {
9
9
const { slug = [ ] } = pageProps
@@ -14,7 +14,7 @@ function MyApp({ Component, pageProps }: AppProps) {
14
14
const item : any = contentData ( ) . find ( checkSlug ( slug ) )
15
15
const { title :siteTitle , url } = getSiteInfo ( )
16
16
const title = `${ item ?. title || '' } ${ siteTitle } `
17
- const [ image ] = getFromTree ( item ?. node , { type :"image" } )
17
+ const [ image ] = getFromTree ( item ?. node , { type :"image" } ) as Array < Image >
18
18
const metaImage = image ?. src || null
19
19
const description = getTextContentFromNode ( item ?. description || [ ] ) || title
20
20
const resultUrl = url || ''
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ ${pages
24
24
<guid>${ conf . url } ${ post . publishUrl } </guid>
25
25
<pubDate>${ new Date ( post . pubdate ) . toUTCString ( ) } </pubDate>
26
26
<description><![CDATA[
27
- <p>${ convertPodNodeToHtml ( post . description ) } </p>
27
+ <p>${ convertPodNodeToHtml ( post . description || '' ) } </p>
28
28
</p>
29
29
]]></description>
30
30
</item>`
You can’t perform that action at this time.
0 commit comments