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

Translate WP post_format to Hugo type #47

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

aurelienpierre
Copy link
Contributor

@aurelienpierre aurelienpierre commented Sep 10, 2024

Allow to apply conditional templates based on types, beyond the mere post/page dichotomy.

WP post_format is written in pages frontmatter under the type field. Hugo will then apply the page template matching the type value, if any.

Notes:

aurelienpierre and others added 2 commits September 11, 2024 01:35
Allow to apply conditional templates based on types, beyond the mere post/page dichotomy. WP `post_format` is written in Hugo frontmatter under `type`

Notes:

- WP post_format: https://developer.wordpress.org/advanced-administration/wordpress/post-formats/
- Hugo type: https://gohugo.io/content-management/types/
@ashishb
Copy link
Owner

ashishb commented Sep 11, 2024

Thanks for the contribution.
My blog doesn't use it, so, I never implemented it but it seems reasonable to migrate it.

@ashishb ashishb merged commit f7af15b into ashishb:main Sep 11, 2024
4 checks passed
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.

2 participants