Skip to content

Commit cf0b7d0

Browse files
authored
Merge pull request #10712 from quarto-dev/listing/categories-links
2 parents f0fcab9 + 826a133 commit cf0b7d0

File tree

11 files changed

+22
-2
lines changed

11 files changed

+22
-2
lines changed

news/changelog-1.6.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ All changes included in 1.6:
4444

4545
- ([#10268](https://github.com/quarto-dev/quarto-cli/issues/10268)]): `quarto create` supports opening project in Positron, in addition to VS Code and RStudio IDE.
4646

47+
## Quarto Blog
48+
49+
- ([#10710](https://github.com/quarto-dev/quarto-cli/issues/10710)): Fix an issue with categorie badges as links in the blog post header.
50+
4751
## Engines
4852

4953
### `julia`

src/resources/formats/html/quarto.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
225225
}
226226

227227
async function findAndActivateCategories() {
228-
const currentPagePath = offsetAbsoluteUrl(window.location.href);
228+
// Categories search with listing only use path without query
229+
const currentPagePath = offsetAbsoluteUrl(
230+
window.location.origin + window.location.pathname
231+
);
229232
const response = await fetch(offsetRelativeUrl("listings.json"));
230233
if (response.status == 200) {
231234
return response.json().then(function (listingPaths) {
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/docs/playwright/blog/listing-search/posts/_metadata.yml renamed to tests/docs/playwright/blog/simple-blog/posts/_metadata.yml

File renamed without changes.

tests/docs/playwright/blog/listing-search/posts/post-with-code/image.jpg renamed to tests/docs/playwright/blog/simple-blog/posts/post-with-code/image.jpg

File renamed without changes.

tests/docs/playwright/blog/listing-search/posts/post-with-code/index.qmd renamed to tests/docs/playwright/blog/simple-blog/posts/post-with-code/index.qmd

File renamed without changes.

tests/docs/playwright/blog/listing-search/posts/welcome/index.qmd renamed to tests/docs/playwright/blog/simple-blog/posts/welcome/index.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ This is the first post in a Quarto blog. Welcome!
99

1010
![](thumbnail.jpg)
1111

12+
## About image listing {#img-lst}
13+
1214
Since this post doesn't specify an explicit `image`, the first image in the post will be used in the listing page of posts.

tests/docs/playwright/blog/listing-search/posts/welcome/thumbnail.jpg renamed to tests/docs/playwright/blog/simple-blog/posts/welcome/thumbnail.jpg

File renamed without changes.

0 commit comments

Comments
 (0)