-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Listitem render hook #9858
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
base: master
Are you sure you want to change the base?
Listitem render hook #9858
Conversation
…nsen/hugo into listitem-render-hook
…nsen/hugo into listitem-render-hook
|
This PR has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
|
Not stale, still seems to meet the contribution guidelines |
I needed a way to render lists and list items for different output formats.
I'm writing a food blog and wrote the recipes directly in json-ld format first and used the JSON as input for my template. This has some drawbacks. I use the image processing quite extensively and that's something that couldn't be used in this scenario. Also google recently changed the way json-ld is accepted with sub-recipes so I decided to instead write my recipes in markdown (with the help of some shortcakes) and render them to html and json-ld, so that I can react to changes with a simple edit of my templates.
But this required the list and especially listitem hooks provided in this PR.