A page with several feed listings writes `index-<id>.xml` files and no `index.xml`
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
- 45/100
Hướng nghiên cứu
Start with crates/quarto-core/src/project/listing/feed/stage.rs, especially the output naming logic at lines 141–162 referenced in the issue, and read the linked plan's D7 decision. Compare behavior for multiple listings with feed: against Quarto 1, including feed filenames, merged items, and alternate links. Done means the chosen behavior is implemented or a warning is added for the changed feed URL, with the single-feed-listing case covered too.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In Quarto 1, a page with listings writes one feed, <stem>.xml, with the items of all listings on the page. Feed options come from the first listing that sets feed:. source
const [dir, stem] = dirAndStem(source);
const finalRelPath = relative(
project.dir,
join(dir, `${stem}.xml`),
);
// ...
// Merge all the items
const items: ListingItem[] = [];
for (const descriptor of descriptors) {
items.push(...descriptor.items);
}
q2 writes one feed per listing with feed:. When more than one listing has it, each file is named <stem>-<listing-id>.xml and there is no <stem>.xml:
# _quarto.yml
project:
type: website
website:
title: Blog
site-url: https://example.com
# index.qmd
---
title: Blog
listing:
- id: y2026
contents: "posts/2026-*.qmd"
feed: true
- id: y2025
contents: "posts/2025-*.qmd"
feed: true
---
q2 0.47.0: index-y2026.xml and index-y2025.xml, and two <link rel="alternate"> in index.html. Quarto 1.12.3: one index.xml with all the posts.
On my blog, the index page has one listing per year. Moving to that layout changed the feed URL from /index.xml to /index-<id>.xml without any message, which breaks existing subscribers. I worked around it with a first listing without id that carries the feed, and an empty template.
This is a deliberate choice (D7 in claude-notes/plans/2026-05-08-listings-L9-rss-feeds.md), based on one listing per page being the common case. The output also differs when only one listing among several has feed:: Quarto 1 writes index.xml with the items of all listings, q2 only with the items of that listing.
The plan mentions an opt-in feed-merge: true if users ask for Quarto 1 behavior. We could instead make the merge the default, so a site moving from Quarto 1 keeps its feed URL and content, and keep per-listing feeds as the opt-in. At least, we could warn when a page with several feed listings no longer writes <stem>.xml.
- Ngôn ngữ chính
- Rust
- Star
- 316
- Fork
- 23
- Merge trung bình
- 6 giờ 50 phút
- Pull request đã merge (30 ngày)
- 230
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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
quarto-dev/q2#1188 · 3 bình luận ·
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 73/100
quarto-dev/q2#1179 ·
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
quarto-dev/q2#1133 ·
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 76/100
quarto-dev/q2#1103 · 1 bình luận ·
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 ·
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 82/100
limitlessprojects/Go-Hybrid#4764 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MartinPTielemans/ilo#4238 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:compat area:operations documentation ready-for-agent type:afk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ZcashFoundation/zinder#552 ·
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 85/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 62/100
Maintainer thường phản hồi trong vòng 1 ngày