-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
115 lines (91 loc) · 4.94 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
layout: default
---
<div class='container'>
<div class="well pull-right">
<p><a class="btn btn-primary btn-block" href="datapackage.json"><i class="fa fa-cloud-download"></i> Download Datapackage</a></p>
<p><a class="btn btn-default btn-block" href="{{ site.github.repository_url }}"><i class="fa fa-github"></i> View on GitHub</a></p>
<p><a class="btn btn-default btn-block" href="{{ site.github.repository_url }}/commits/gh-pages.atom"><i class="fa fa-rss"></i> Subscribe to changes</a></p>
</div>
<h1 property="dct:title">{{ site.data.datapackage.title }}</h1>
<p property="dct:description">{{ site.data.datapackage.description }}</p>
<p property="dct:license" resource="{{ site.data.datapackage.licenses.first['url'] }}">
<strong>License</strong><br />
<a href="{{ site.data.datapackage.licenses.first['url'] }}"><span property="dct:title">{{ site.data.datapackage.licenses.first['title'] }}</span></a>
</p>
<p property="dct:publisher" resource="{{ site.data.datapackage.publishers.first['web'] }}">
<strong property="rdfs:label">Publisher</strong><br />
<a href="{{ site.data.datapackage.publishers.first.['web'] }}" about="{{ site.data.datapackage.publishers.first['web'] }}" property="foaf:homepage">
<span property="foaf:name">{{ site.data.datapackage.publishers.first['name'] }}</span>
</a>
</p>
<p>
<strong property="rdfs:label">Update frequency</strong><br />
<span property="dcat:accrualPeriodicity">{{ site.update_frequency }}</span>
</p>
<h2>Files</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Format</th>
<th>Description</th>
<th>Data</th>
<th>Download</th>
<th></th>
</tr>
</thead>
<tbody>
{% for resource in site.data.datapackage.resources %}
<tr property='dcat:distribution' typeof='dcat:Distribution'>
<td property="dcat:title">{{ resource.name }}</td>
<td property="dcat:format">{{ resource.mediatype }}</td>
<td property="dcat:description">{{ resource.description }}</td>
{% if resource.mediatype == "text/csv" %}
<td><a href="{{ resource.path | split:"." | first }}.html"><i class="fa fa-search"></i> View</a></td>
{% else %}
<td></td>
{% endif %}
<td><a href="{{ resource.path }}" property='dcat:accessURL'><i class="fa fa-cloud-download"></i> Download</a></td>
{% if resource.mediatype == "text/csv" %}
{% unless resource.path contains 'http' %}
<td><a href="http:https://csvlint.io/?uri={{ site.github.url }}/{{ resource.path }}"><img src="http:https://csvlint.io/?uri={{ site.github.url }}/{{ resource.path }}&format=svg" alt="CSVlint validation result" /></a></td>
{% else %}
<td><a href="http:https://csvlint.io/?uri={{ resource.path }}"><img src="http:https://csvlint.io/?uri={{ resource.path }}&format=svg" alt="CSVlint validation result" /></a></td>
{% endunless %}
{% else %}
<td></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% assign index_length = 0 %}
{% for item in site.data.index %}
{% assign index_length = forloop.length %}
{% endfor %}
{% if index_length > 0 %}
<h2>API</h2>
<ul>
{% for item in site.data.index %}
<li><a href="{{ item['url'] | | remove: '.json'}}.html">{{ item['url'] | | remove: '.json' | capitalize}}</a></li>
{% endfor %}
</ul>
{% endif %}
<script src="{{ site.certificate_url }}"></script>
<h2>Support</h2>
<p>If you want to learn more about the cat register <a href="https://medium.com/@peterkwells/gov-cats-f143d4a7407b#.26x8cgrre" target="_blank">you can read a short blog about it</a>.</p>
<p>There is a <a href="https://peterkwells.github.io/uk-govt-cat-dashboard/" target="_blank">dashboard</a> of key metrics about the UK government cat register.</p>
<p>If you want to learn more about the data in the cat register, for example what 'Inactive' means, please <a href="https://github.com/peterkwells/uk-government-cats/blob/gh-pages/README.md" target="_blank">read the submission guidelines</a>.</p>
<p>If you have support queries, suggestions or corrections to the data, please <a href="{{ site.github.issues_url }}" target="_blank">file a new issue</a> in our GitHub repository.</p>
<p>All comments and subsequent fixes will be <a href="{{ site.github.issues_url }}" target="_blank">logged openly</a> such that you can easily see the provenance of each object in this dataset.</p>
<p class="lastUpdate text-right">Last update: {{ site.time | date: '%Y-%m-%d at %H:%M' }}</p>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-83210238-1', 'auto');
ga('send', 'pageview');
</script>