Inconsistent behaviour with tags including special characters that are not escaped by quotes defined in an array
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- jekyll, ruby, yaml
- Ambito
- build-system, web-dev
Direzione di ricerca
Inizia dagli esempi di front matter e dal repository MWE collegato, confrontando la generazione locale con il risultato di GitHub Pages per gli array di tag contenenti ?. Traccia il modo in cui i campi tag e tags vengono analizzati durante la build di GitHub Pages. Il lavoro è completato quando la forma array senza virgolette si comporta in modo coerente con la generazione locale oppure segnala un errore di validazione chiaro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Ruby
- Stelle
- 1.9k
- Fork
- 361
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/pages-gem
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
-
index.htmlAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
Tutte le issue di github/pages-gem
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
IBM/ai-security-baseline#25 ·
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100