New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quote handling in front matter title incorrect #5171
Comments
Hi @dret, thanks for the bug report! I wasn't able to reproduce this on my own site, so I cloned yours and poked around. I think the issue is that your
This takes the ampersands in the page title and escapes them again, causing the mangled title you're seeing. The minima theme is doing this so that you don't have to; it's designed so that you can use HTML-unsafe characters in your title strings without worry. But since you're escaping "manually" it escapes your escapes, which isn't what you want. I think your best bet is to write your titles as plain, un-escaped strings, and let Jekyll take care of escaping them where necessary. In this case, you could make this change: - title: "The Atom "deleted-entry" Element"
+ title: "The Atom \"deleted-entry\" Element" Or even this: - title: "The Atom "deleted-entry" Element"
+ title: The Atom "deleted-entry" Element ... since Hope this is helpful! |
On 2016-07-30 18:41, Jake Low wrote:
and thanks a lot for the detailed response!
dret/webconcepts@b5efe07
this did not work (i would have preferred it) because it created some |
Glad you got this sorted! We're at the mercy of Liquid and YAML here, sadly. :/ |
i guess that's what you get yourself into when you happily mix markup languages a la YAML and HTML and MD. thanks for your help on this one! |
https://github.com/dret/webconcepts/blob/gh-pages/specs/IETF/RFC/6271.md uses jekyll front matter and has quotes in the title. it thus escapes those quotes. http://webconcepts.info/specs/IETF/RFC/6271 is the web view of that. while the HTML body//h1 title is correct, the HTML head//title incorrectly escapes the escaped quote. this results in browser displaying the page title incorrectly, for example in tabs or in the history.
steps to reproduce are to simply create a jekyll page with an escaped quote in a quoted title in the front matter. i see this bug on my locally installed jekyll 3.1.6, as well as on github.
The text was updated successfully, but these errors were encountered: