You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose licenses listed on /licenses in a machine-readable format #434
I'm not sure what the name for that flag should be (intuitively, I think hidden: true as a default like we had before, and having hidden: false on those licenses makes sense, along with updating the template logic to be dynamic), but even having those featured licenses as an array in the template's YAML front matter (even if that wouldn't help expose the licenses) would feel better, from a DRY perspective (rather than hard coding them).
I did think about ordering by # of conditions and filtering by hidden to make #386 but felt it just made the source for that page more obscure. But sure, having the ordering specified in the front matter of licenses.html or perhaps _config.yml could be useful so that ordering is available if someone wants to do something else with it. I'll think about that and maybe make a PR.
I'll make a PR shortly to re-add hidden: false field on the licenses currently on /licenses because it is useful elsewhere.
Activity
benbalter commentedon Jun 14, 2016
cc #398
mlinksva commentedon Jun 14, 2016
I did think about ordering by # of conditions and filtering by hidden to make #386 but felt it just made the source for that page more obscure. But sure, having the ordering specified in the front matter of licenses.html or perhaps _config.yml could be useful so that ordering is available if someone wants to do something else with it. I'll think about that and maybe make a PR.
I'll make a PR shortly to re-add hidden: false field on the licenses currently on /licenses because it is useful elsewhere.
re-add optional hidden field, default to true