Inconsistent behaviour with tags including special characters that are not escaped by quotes defined in an array
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- jekyll, ruby, yaml
- 領域
- build-system, web-dev
調査の方向性
front matter の例とリンクされた MWE リポジトリから始め、? を含む配列タグについて、ローカルでの生成結果と GitHub Pages の結果を比較します。GitHub Pages のビルド中に tag フィールドと tags フィールドがどのようにパースされるかを追跡します。引用符で囲まれていない配列表記がローカルでの生成と一貫して動作するか、または明確なバリデーションエラーを報告すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Ruby
- スター
- 1.9k
- フォーク
- 361
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/pages-gem のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
-
index.htmlオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
github/pages-gem の issue をすべて見る
似ている issue
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
homebrew warningsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
bradygaster/squad#2082 ·
メンテナーはふだん 1 日以内に返信