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

Advanced Grouping #4585

Open
julianoappelklein opened this issue Apr 6, 2018 · 1 comment
Open

Advanced Grouping #4585

julianoappelklein opened this issue Apr 6, 2018 · 1 comment

Comments

@julianoappelklein
Copy link

I can’t find anything in the Hugo docs about the matter, so I decided bring this up.

I know the Hugo has the built in grouping stuff, but sometimes this is not enough.
Sometimes is necessary to group an array from a data file ("/data/somedatawithanarray.json"). It’s not nice have to iterate over an array to group it using the $.Scratch.

I believe a group command would by very straightforward. Something like:

$groups := group $somearray "someprop"

The expected result would by a dictionary containing a key and an array.

It could also be usefull to have a then by. The syntax could be something like:

$groupsofgroups := group $somearray "someprop" "anotherprop"

In this case, the expected result would by a dictionary containing a key and an array of dictionaries (groups).

Sorry if a similar feature already exists, but I couldn’t find it anywhere.

@bep bep added the Enhancement label Apr 8, 2018
@stale
Copy link

stale bot commented Aug 6, 2018

This issue 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.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Aug 6, 2018
@bep bep added the Keep label Aug 6, 2018
@stale stale bot removed the Stale label Aug 6, 2018
@bep bep added this to the v0.131.0 milestone Jul 30, 2024
@bep bep modified the milestones: v0.131.0, v0.133.0 Aug 9, 2024
@bep bep modified the milestones: v0.133.0, Unscheduled Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants