Inconsistent behaviour with tags including special characters that are not escaped by quotes defined in an array
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 38/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- jekyll, ruby, yaml
- Domaine
- build-system, web-dev
Piste de recherche
Commencez par les exemples de front matter et le dépôt MWE lié, en comparant la génération locale avec le résultat de GitHub Pages pour les tags de tableau contenant ?. Suivez la manière dont les champs tag et tags sont analysés pendant le build de GitHub Pages. C’est terminé lorsque la forme de tableau non entourée de guillemets se comporte de manière cohérente avec la génération locale ou signale une erreur de validation claire.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Ruby
- Étoiles
- 1.9k
- Forks
- 361
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/pages-gem
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Error when building docker imageOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 5/100
-
index.htmlOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 5/100
Toutes les issues de github/pages-gem
Issues similaires
-
area/web interface
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
chef/mixlib-shellout#287 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour