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

Use camelcased frontmatter keys #347

Merged
merged 1 commit into from
May 30, 2021
Merged

Conversation

paulrobertlloyd
Copy link
Collaborator

@paulrobertlloyd paulrobertlloyd commented May 30, 2021

Go templates don’t accept hyphens in property names, and Hugo camelCases its predefined front matter keys.

This PR ensures all front matter (including nested ones) use camelCased key names. Fixes #345.

@paulrobertlloyd paulrobertlloyd force-pushed the 345-hugo-preset-frontmatter branch from 41c7f59 to 32069d9 Compare May 30, 2021 20:21
@paulrobertlloyd paulrobertlloyd temporarily deployed to indiekit-345-hugo-prese-mxlss9 May 30, 2021 20:28 Inactive
@paulrobertlloyd paulrobertlloyd merged commit bbb90af into main May 30, 2021
@paulrobertlloyd paulrobertlloyd deleted the 345-hugo-preset-frontmatter branch May 30, 2021 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hugo doesn't like dashes in frontmatter variable names
1 participant