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

Find way to allow shared-doc content to use shortcodes #5726

Open
chalin opened this issue Dec 4, 2024 · 1 comment
Open

Find way to allow shared-doc content to use shortcodes #5726

chalin opened this issue Dec 4, 2024 · 1 comment
Labels
CI/infra CI & infrastructure enhancement New feature or request p1-high p2-medium

Comments

@chalin
Copy link
Contributor

chalin commented Dec 4, 2024

Originally posted by @chalin in #3931 (comment)

We should explore ways to be able to use shortcodes here (most likely in a template).

@svrnm
Copy link
Member

svrnm commented Dec 11, 2024

to be honest I am not happy with the way how we use shortcodes as "shared-doc", this is especially also with the localizations leading to additional complexity. It would be great if we could find a better approach, e.g. some kind of "content templates" that can be merged into a site but still live in the content/<language>/ folder so they are also easy to find for folks doing the translations.

As of today hugo seems not to have a good solution for that, the things I am aware of are:

  • shortcodes (what we do today)
  • localization files (not sure how much markdown we can use within those strings)
  • some readFile magic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure enhancement New feature or request p1-high p2-medium
Projects
Status: No status
Development

No branches or pull requests

2 participants