File tree Expand file tree Collapse file tree 12 files changed +96
-2
lines changed
src/project/types/website
tests/docs/smoke-all/2024/12/03/issue-11580 Expand file tree Collapse file tree 12 files changed +96
-2
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ import { projectDraftMode } from "./website-utils.ts";
8989import { kFieldCategories } from "./listing/website-listing-shared.ts" ;
9090import { pandocNativeStr } from "../../../core/pandoc/codegen.ts" ;
9191import { asArray } from "../../../core/array.ts" ;
92+ import { InternalError } from "../../../core/lib/error.ts" ;
9293
9394export const kSiteTemplateDefault = "default" ;
9495export const kSiteTemplateBlog = "blog" ;
@@ -207,8 +208,12 @@ export const websiteProjectType: ProjectType = {
207208 extras . metadataOverride [ kFieldCategories ] = asArray (
208209 format . metadata [ kFieldCategories ] ,
209210 ) . map (
210- ( category ) =>
211- pandocNativeStr ( category as string ) . mappedString ( ) . value ,
211+ ( category ) => {
212+ const strCategory : string = typeof category === "string"
213+ ? category
214+ : category . toString ( ) ;
215+ return pandocNativeStr ( strCategory ) . mappedString ( ) . value ;
216+ } ,
212217 ) ;
213218 }
214219
Original file line number Diff line number Diff line change 1+ /.quarto /
Original file line number Diff line number Diff line change 1+ project :
2+ type : website
3+
4+ website :
5+ title : " issue-11580"
6+ navbar :
7+ right :
8+ - about.qmd
9+ - icon : github
10+ href : https://github.com/
11+ - icon : twitter
12+ href : https://twitter.com
13+ format :
14+ html :
15+ theme :
16+ - cosmo
17+ - brand
18+ css : styles.css
19+
20+
21+
Original file line number Diff line number Diff line change 1+ ---
2+ title : " About"
3+ image : profile.jpg
4+ about :
5+ template : jolla
6+ links :
7+ - icon : twitter
8+ text : Twitter
9+ href : https://twitter.com
10+ - icon : linkedin
11+ text : LinkedIn
12+ href : https://linkedin.com
13+ - icon : github
14+ text : Github
15+ href : https://github.com
16+
17+ ---
18+
19+ About this blog
Original file line number Diff line number Diff line change 1+ ---
2+ title : " issue-11580"
3+ listing :
4+ contents : posts
5+ sort : " date desc"
6+ type : default
7+ categories : true
8+ sort-ui : false
9+ filter-ui : false
10+ page-layout : full
11+ title-block-banner : true
12+ ---
13+
14+
Original file line number Diff line number Diff line change 1+ # options specified here will apply to all posts in this folder
2+
3+ # freeze computational output
4+ # (see https://quarto.org/docs/projects/code-execution.html#freeze)
5+ freeze : true
6+
7+ # Enable banner style title blocks
8+ title-block-banner : true
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Post With Code"
3+ author : " Harlow Malloc"
4+ date : " 2024-12-03"
5+ categories :
6+ - news
7+ - code
8+ - 3
9+ - analysis
10+ image : " image.jpg"
11+ ---
12+
13+ This is a post with executable code.
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Welcome To My Blog"
3+ author : " Tristan O'Malley"
4+ date : " 2024-11-30"
5+ categories : [news]
6+ ---
7+
8+ This is the first post in a Quarto blog. Welcome!
9+
10+ ![ ] ( thumbnail.jpg )
11+
12+ Since this post doesn't specify an explicit ` image ` , the first image in the post will be used in the listing page of posts.
You can’t perform that action at this time.
0 commit comments