File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as img from "../../built/images"
33import Head from "next/head"
44import type { AppProps } from "next/app"
55import { contentData , getSiteInfo } from "../utils"
6- import { getFromTree , getTextContentFromNode } from "@podlite/schema"
6+ import { getFromTree , getTextContentFromNode , Image } from "@podlite/schema"
77
88function 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 || ''
Original file line number Diff line number Diff 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>`
You can’t perform that action at this time.
0 commit comments