Files
pidcodes.github.com/_includes/orgtable.html
Peter Newman c54c8582ba Create a list of organisations (#181)
* Remove errant .DS_Store file

* Ignore .DS_Store

* Create a list of organisations

* Add an org list

* Show number of PIDs per org

* Fix HTML issue, sort orgs by title

* Try and fix the PID count

* Try and fix issues

* Try again to fix issues

* Try yet again to fix issues

* Correct the urlpart

* Change to sort_natural, minor code tidy

* Try and fix the sorting

* Try again to fix the sorting

* Remove debugging

* Add a link to orgs page
2016-09-13 17:18:51 +01:00

16 lines
454 B
HTML

{% include data.html %}
<table>
<thead>
<tr><th>Organisation</th><th>Number of PIDs</th></tr>
</thead>
{% assign sortedorgs = {{site.pages|where:"layout","org"|sort:"title"}} %}
{% for org in sortedorgs %}
{% assign urlparts = org.url|split:"/" %}
{% assign owner = urlparts[2] %}
<tr>
<th><a href="{{org.url}}">{{org.title}}</a></th>
<td>{{ pids | where:"owner",owner | size }}</td>
</tr>
{% endfor %}
</table>