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

Parameter naming is conflict with Hugo built-in opengraph and twitter-card templates #26

Closed
razonyang opened this issue Nov 8, 2023 · 0 comments · Fixed by #27 or #28
Closed
Assignees
Labels
bug Something isn't working

Comments

@razonyang
Copy link
Member

razonyang commented Nov 8, 2023

Templates

  1. https://github.com/gohugoio/hugo/blob/ac7cffa7e2932fc3c6bd425f86b981dfdef94968/tpl/tplimpl/embedded/templates/opengraph.html#L15C18-L15C18
  2. https://github.com/gohugoio/hugo/blob/ac7cffa7e2932fc3c6bd425f86b981dfdef94968/tpl/tplimpl/embedded/templates/twitter_cards.html#L12

Solution

If you've configured the module's parameters, you'll need to rename the images parameter to hugomods.images, to get rid of conflicting with Hugo internal templates.

// params.toml
[images]
class_name = "img_fluid"

to

// params.toml
[hugomods.images]
class_name = "img_fluid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant