Inconsistent behaviour with tags including special characters that are not escaped by quotes defined in an array
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- jekyll, ruby, yaml
- Área
- build-system, web-dev
Línea de trabajo
Empieza por los ejemplos de front matter y el repositorio MWE enlazado, comparando la generación local con el resultado de GitHub Pages para etiquetas de array que contienen ?. Traza cómo se analizan los campos tag y tags durante la compilación de GitHub Pages. Se considera terminado cuando la forma de array sin comillas se comporta de forma coherente con la generación local o informa de un error de validación claro.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Ruby
- Estrellas
- 1.9k
- Forks
- 361
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/pages-gem
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Error when building docker imageAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
-
index.htmlAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
Todos los issues de github/pages-gem
Issues similares
-
security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
solana-foundation/pay-kit#341 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
julienXX/terminal-notifier#333 ·
-
Plash is no longer open sourceAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
serhii-londar/open-source-mac-os-apps#1419 ·
Los mantenedores suelen responder en 5 días