Skip to content

Commit 3cfdf01

Browse files
authored
Merge pull request #10725 from quarto-dev/fix/list-js-patch
2 parents 7a0131d + 813b83b commit 3cfdf01

File tree

12 files changed

+94
-16
lines changed

12 files changed

+94
-16
lines changed

package/src/common/update-html-dependencies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ export async function updateHtmlDependencies(config: Configuration) {
187187
// Omit regular expression escaping
188188
// (Fixes https://github.com/quarto-dev/quarto-cli/issues/8435)
189189
const contents = Deno.readTextFileSync(listJs);
190-
const removeContent = /e=\(e=t\.utils\.toString\(e\)\.toLowerCase\(\)\)\.replace\(.*?\),/g
191-
const cleaned = contents.replaceAll(removeContent, "");
190+
const removeContent = /(\(e=t\.utils\.toString\(e\)\.toLowerCase\(\)\))\.replace\(.*\)(,r=e)/g;
191+
const cleaned = contents.replace(removeContent, "$1$2");
192192
Deno.writeTextFileSync(listJs, cleaned);
193193

194194
return Promise.resolve();

src/resources/projects/website/listing/list.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.quarto/
2+
/_site/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
project:
2+
type: website
3+
4+
website:
5+
title: "Testing listing search"
6+
7+
format: html
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Testing listing search"
3+
listing:
4+
contents: posts
5+
sort: "date desc"
6+
type: table
7+
categories: true
8+
filter-ui: true
9+
page-layout: full
10+
title-block-banner: true
11+
---
12+
13+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# options specified here will apply to all posts in this folder
2+
3+
# Enable banner style title blocks
4+
title-block-banner: true
40.8 KB
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Post With Code"
3+
author: "Harlow Malloc"
4+
date: "2024-09-06"
5+
categories: [news, code, analysis]
6+
image: "image.jpg"
7+
---
8+
9+
This is a post with executable code.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Welcome To My Blog"
3+
author: "Tristan O'Malley"
4+
date: "2024-09-03"
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.
39 KB
Loading

0 commit comments

Comments
 (0)