Skip to content
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

Apostrophes in site.yaml description causes 500 error #54

Closed
RyanMPierson opened this issue Sep 14, 2014 · 3 comments
Closed

Apostrophes in site.yaml description causes 500 error #54

RyanMPierson opened this issue Sep 14, 2014 · 3 comments
Assignees
Labels

Comments

@RyanMPierson
Copy link
Member

Happens across all themes. Having an apostrophe in the description field of the site.yaml causes a 500 error.

@rhukster
Copy link
Member

Thanks will investigate this further.

@rhukster rhukster added the bug label Sep 14, 2014
@rhukster rhukster added this to the 0.9.2 Release milestone Sep 14, 2014
@rhukster rhukster self-assigned this Sep 14, 2014
@rhukster
Copy link
Member

I suspect you are not escaping the apostrophe in the yaml that is already enclosed by apostrophes:

ie:

description: 'Grav Site's Description'

The error by default is hidden by Grav, but you can see it by looking in the /logs folder.

There are three solutions:

a) Escape the apostrophe like so: description: 'Grav Site''s Description'

or

b) Use double quotes around the string: description: "Grav Site's Description"

or

c) Use no quotes at all: description: Grav Site's Description

@rhukster rhukster added question and removed bug labels Sep 14, 2014
@rhukster rhukster removed this from the 0.9.2 Release milestone Sep 14, 2014
@RyanMPierson
Copy link
Member Author

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants