Inconsistent behaviour with tags including special characters that are not escaped by quotes defined in an array
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- jekyll, ruby, yaml
- Domínio
- build-system, web-dev
Direção de pesquisa
Comece pelos exemplos de front matter e pelo repositório MWE vinculado, comparando a geração local com o resultado do GitHub Pages para arrays de tags que contêm ?. Rastreie como os campos tag e tags são analisados durante o build do GitHub Pages. Considera-se concluído quando a forma de array sem aspas se comporta de maneira consistente com a geração local ou relata um erro de validação claro.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Ruby
- Estrelas
- 1.9k
- Forks
- 362
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/pages-gem
-
Outdated dependencies will cause problem with end of Node.js 20 supportTalvez já em andamento @gruenich assumiu há 28 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
GitHub PagesAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
-
CVE-2026-85396 rubyzip path traversal vulnerabilityTalvez já em andamento @benbalter assumiu há 26 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsAberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
Todas as issues de github/pages-gem
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
TheOdinProject/curriculum#31493 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
rmosolgo/graphql-ruby#5843 ·
Mantenedores costumam responder em até 1 dia
-
Liens externes cassésAberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 66/100
betagouv/conseillers-entreprises#4770 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
seek4science/seek#2762 ·
Mantenedores costumam responder em até 5 dias