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

Metadata letter case issue #1370

Closed
andr11b opened this issue Mar 9, 2018 · 4 comments
Closed

Metadata letter case issue #1370

andr11b opened this issue Mar 9, 2018 · 4 comments
Assignees
Labels

Comments

@andr11b
Copy link

andr11b commented Mar 9, 2018

Admin plugin saves all similar metadata that wrote in different way: 'description' and 'Description' both will be added like two different metadata.

@andr11b andr11b changed the title Metadata names Metadata letter case issue Mar 9, 2018
@rhukster
Copy link
Member

rhukster commented Mar 9, 2018

Can you give me an example of what you mean? How are you entering description both ways? via the frontmatter, or via the forms?

@andr11b
Copy link
Author

andr11b commented Mar 9, 2018

I talk about case sensitive of added metadata names (and no matters how i add it - via the frontmatter, or via the forms ):
Frontmatter:

metadata:
    Description: test
    description: 'test'

Output html:

<meta name="description" content="test" />
<meta name="Description" content="test" />

And when i use something like page.header.metadata.description in the twig-templates it is different of page.header.metadata.Description.

P.S.:Sorry if my poor English is hard to understand.

@rhukster
Copy link
Member

I think we should force to lowercase.

@rhukster rhukster added bug and removed question labels Mar 18, 2018
@rhukster rhukster self-assigned this Mar 18, 2018
@rhukster
Copy link
Member

Fixed in Grav develop branch (not an admin issue)

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