Inconsistent behaviour with tags including special characters that are not escaped by quotes defined in an array
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- jekyll, ruby, yaml
- Lĩnh vực
- build-system, web-dev
Hướng nghiên cứu
Bắt đầu với các ví dụ front matter và repository MWE được liên kết, so sánh quá trình tạo cục bộ với kết quả trên GitHub Pages đối với các tag dạng mảng chứa ?. Truy vết cách các trường tag và tags được phân tích trong quá trình build GitHub Pages. Được xem là hoàn tất khi dạng mảng không có dấu ngoặc kép hoạt động nhất quán với quá trình tạo cục bộ hoặc báo cáo một lỗi xác thực rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before submitting an issue, please be sure to
- Read the contributing instructions
- Update to the latest Gem version (run
bundle update github-pages)
This issue affects
- The site generated by GitHub Pages
- Building sites locally
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
In post front-matter, I did not surround tag containing ? with quotation marks in an array. This worked locally, however, GitHub Pages silently ignored these posts, without raising any error.
I'm not sure if other non-alphanumeric characters will cause the same behaviour (! worked fine). It's not clear which characters are considered special.
It doesn't matter whether it's tag: or tags:, but seem to only happen when an array is used.
What didn't work:
---
layout: default
title: Will it work? No Quotes
tag: [but-why?]
---
What worked:
---
layout: default
title: Will it work? No Question Mark in Tag
tag: [but-why]
---
---
layout: default
title: Will it work? Quotes in Tag
tag: ["but-why?"]
---
What did you expect to happen?
All three front-matter successfully generated pages locally, but only the first two were built by GitHub Pages.
Locally generated index:
Will it work? Quotes in Tag
Will it work? No Question Mark in Tag
Will it work? No Quotes
What happened instead?
Index on GitHub Pages:
Will it work? Quotes in Tag
Will it work? No Question Mark in Tag
Interestingly, when viewing the markdown file of post that was ignored on GitHub, the front-matter is formatted as a code block instead of the usual table.
With quotation marks:

Additional information
MWE:
- Link to the live site (if applicable): https://weixuanz.github.io/ghpages-test/
- Link to the source repo (if applicable): https://github.com/WeixuanZ/ghpages-test
- Ngôn ngữ chính
- Ruby
- Star
- 1.9k
- Fork
- 361
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
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 github/pages-gem
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Error when building docker imageĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
-
index.htmlĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Tất cả issue của github/pages-gem
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/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 78/100
solana-foundation/pay-kit#341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
TheOdinProject/curriculum#31427 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mail processor needs SSL flagĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
cyclestreets/cyclescape#1107 · 1 reaction ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày