Categories in a post's title block are not linked to the listing
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 57/100
Hướng nghiên cứu
Start by tracing how q2 renders listing pages and the .quarto-category markup, then compare the behavior described in src/resources/formats/html/quarto.js and the listings plan at claude-notes/plans/2026-05-05-listings-epic.md. Check how q2 knows which listings contain a page and where category links can be emitted at render time. Done means title-block categories link to a containing listing with the category filter, including the described listing selection behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In Quarto 1, the categories shown in a post's title block link back to the listing that contains the post, filtered on that category (#category=R). quarto.js does it at load time: it fetches listings.json, keeps the listings whose items include the current page, picks one (the nearest parent listing, else the listing the reader came from, else the first one) and wraps each .quarto-category in a link.
q2 renders the same markup (<div class="quarto-category">R</div>) but emits neither listings.json nor the script, so the categories are plain text. The listing side already works: with categories: true, the category sidebar filters the items, and index.html#category=R filters on load.
The listings epic notes defer listings.json until search lands (claude-notes/plans/2026-05-05-listings-epic.md). This issue is about the user-visible part: linking title-block categories to their listing.
Reproduction:
# _quarto.yml
project:
type: website
# index.qmd
---
title: Blog
listing:
contents: posts
categories: true
---
# posts/a/index.qmd
---
title: A post
categories: [R]
---
q2 render, open _site/posts/a/index.html: the "R" category is not a link. In Quarto 1 it links to the root listing (/index.html#category=R).
We could write the links at render time instead, since q2 knows which listings include a page: no listings.json, no fetch. The nearest parent listing, then the first one, can be chosen the same way as Quarto 1. Only the referrer case needs the browser.
Workaround used on cderv.dev: a small include-after-body script in the theme extension that links each category to the root index.html (cderv/quarto-ghostwriter#7).
- Ngôn ngữ chính
- Rust
- Star
- 316
- Fork
- 23
- Merge trung bình
- 11 giờ 49 phút
- Pull request đã merge (30 ngày)
- 245
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/q2
-
Heading anchor links have no icon: AnchorJS is initialised with an empty `icon`Có thể đã có người làm @cscheid đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/q2#1419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug testing windows
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/q2#1346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
quarto-dev/q2#1095 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
quarto-dev/q2#1418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug readers-writers windows
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
quarto-dev/q2#1416 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/q2
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
BurntSushi/jiff#755 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
After the kernel is given up on, a new import leaves "Importing…" and its Cancel on the status lineĐang mởbug help wanted priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sawhorse3d/sawhorse#163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MartinPTielemans/ilo#4607 ·