jekyll-theme-jod 0.1.7 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4be4d9954e1b774631913aa9a5bb1e69ccbf8e45
4
- data.tar.gz: a112e3f44e12c4338a2f7045ca330adbcf9eb923
2
+ SHA256:
3
+ metadata.gz: f4c12e50ab801a4eabe6cdfee6a203ff074065b12bac80aad6521436c8c8a836
4
+ data.tar.gz: 06f51ecd743ac2221536abcd45d62999939c29e3d6abf70f4759e1e3ecba2680
5
5
  SHA512:
6
- metadata.gz: 131c86a82dd7acb49c53b7fdc1bc71d5a0310f422cf001f6e2c8a420c1acabbfac232b7e0fd0f9d058ed5fb36a5a9fca2b7a35b2c30f5171c6810221504f6824
7
- data.tar.gz: 1acaa5e3148881c6a8c9dbaa18965840d191cb9cbc03c60e84284c91d376450a83becdde4dc2946f39f590da2f93dffc4dae9629d239b5c026c7163314695c7f
6
+ metadata.gz: 9a0f0428aaf4dc7a3d58a305569893500f446db0f0f838ab8d51bbe07d38922feef35fb817e929d65c7b85fa52e6a274a23d68d78dbbfe8981ce873e79912a4f
7
+ data.tar.gz: a4fb7605541d4ded8d9130882346ebbb055fbfe7c0362eb373225dccc68a4b64069537ecc2323d4c605c8ef59e2a36f37a2cad2e0b23ef6b72028a0cf8c372f6
data/_data/prefixes.pref CHANGED
@@ -7,3 +7,4 @@ PREFIX dct: <http://purl.org/dc/terms/>
7
7
  PREFIX vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>
8
8
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
9
9
  PREFIX vann: <http://purl.org/vocab/vann/>
10
+ PREFIX dbo: <http://dbpedia.org/ontology/>
@@ -1,42 +1,43 @@
1
1
  {%- capture iri -%}<{{include.iri}}>{%- endcapture -%}
2
2
  {%- assign cardResource = iri | rdf_get -%}
3
+ {%- assign resource_md5 = cardResource.iri | md5 -%}
3
4
  <div
4
5
  class="card"
5
- id="{{ cardResource.iri | md5}}"
6
+ id="id-{{ resource_md5 }}"
6
7
  >
7
8
  <div class="card-header">
8
9
  <h4 class="card-title">{% include label.html iri = cardResource.iri %}</h4>
9
10
  <p><small class="text-muted">{{ cardResource.iri }}</small></p>
10
11
  <nav
11
12
  class="nav nav-tabs card-header-tabs"
12
- id="{{ cardResource.iri | md5}}-nav"
13
+ id="id-{{ resource_md5 }}-nav"
13
14
  role="tablist">
14
15
  <a
15
- href="#{{ cardResource.iri | md5}}-description"
16
+ href="#id-{{ resource_md5 }}-description"
16
17
  class="nav-item nav-link active"
17
18
  aria-selected="true"
18
- data-toggle="tab"
19
+ data-bs-toggle="tab"
19
20
  role="tab">Description</a>
20
21
  <a
21
- href="#{{ cardResource.iri | md5}}-annotations"
22
+ href="#id-{{ resource_md5 }}-annotations"
22
23
  class="nav-item nav-link"
23
24
  aria-selected="false"
24
- data-toggle="tab"
25
+ data-bs-toggle="tab"
25
26
  role="tab">Annotations</a>
26
27
  <a
27
- href="#{{ cardResource.iri | md5}}-relations"
28
- id="{{ cardResource.iri | md5}}-tab-relations"
28
+ href="#id-{{ resource_md5 }}-relations"
29
+ id="id-{{ resource_md5 }}-tab-relations"
29
30
  class="nav-item nav-link"
30
31
  aria-selected="false"
31
- data-toggle="tab"
32
+ data-bs-toggle="tab"
32
33
  role="tab">Relations</a>
33
34
  </nav>
34
35
  </div>
35
36
  <div
36
- id="{{ cardResource.iri | md5}}-tab-content"
37
+ id="id-{{ resource_md5 }}-tab-content"
37
38
  class="tab-content card-body">
38
39
  <div
39
- id="{{ cardResource.iri | md5}}-description"
40
+ id="id-{{ resource_md5 }}-description"
40
41
  class="card-text tab-pane fade show active"
41
42
  role="tabpanel">
42
43
  <p>
@@ -64,7 +65,7 @@
64
65
  </dl>
65
66
  </div>
66
67
  <div
67
- id="{{ cardResource.iri | md5}}-annotations"
68
+ id="id-{{ resource_md5 }}-annotations"
68
69
  class="card-text tab-pane fade"
69
70
  role="tabpanel">
70
71
  <dl>
@@ -124,7 +125,7 @@
124
125
  </dl>
125
126
  </div>
126
127
  <div
127
- id="{{ cardResource.iri | md5}}-relations"
128
+ id="id-{{ resource_md5 }}-relations"
128
129
  class="card-text tab-pane fade"
129
130
  role="tabpanel">
130
131
  <dl>
data/_includes/label.html CHANGED
@@ -2,6 +2,8 @@
2
2
  {%- assign labelResource = iri | rdf_get -%}
3
3
  {%- assign label = labelResource | rdf_property: 'skos:prefLabel', 'en' -%}
4
4
  {%- unless label -%}{%- assign label = labelResource | rdf_property: 'skos:prefLabel' -%}{%- endunless -%}
5
+ {%- unless label -%}{%- assign label = labelResource | rdf_property: 'foaf:name', 'en' -%}{%- endunless -%}
6
+ {%- unless label -%}{%- assign label = labelResource | rdf_property: 'foaf:name' -%}{%- endunless -%}
5
7
  {%- unless label -%}{%- assign label = labelResource | rdf_property: 'rdfs:label', 'en' -%}{%- endunless -%}
6
8
  {%- unless label -%}{%- assign label = labelResource | rdf_property: 'rdfs:label' -%}{%- endunless -%}
7
9
  {%- unless label -%}{%- assign label = labelResource.iri | split: "#" -%}{%- assign label = {{label[1]}} -%}{%- endunless -%}
@@ -1,4 +1,4 @@
1
- <nav class="col-sm-3 col-md-2 d-none d-sm-block bg-light sidebar">
1
+ <nav class="col-sm-3 col-md-2 col-lg-3 col-xl-3 d-none d-sm-block bg-light sidebar">
2
2
  <form class="bd-search d-flex align-items-center">
3
3
  <input
4
4
  type="search"
@@ -1,5 +1,6 @@
1
1
  <div class="jumbotron">
2
2
  <h1 class="display-3">{% include label.html iri = page.rdf.iri %}</h1>
3
+ <p class="lead subtitle">{{ page.rdf | rdf_property: 'dbo:subtitle', 'en' }}</p>
3
4
  <p class="lead">{{ page.rdf | rdf_property: 'rdfs:comment', 'en' }}</p>
4
5
  <hr class="my-4">
5
6
  <p>
@@ -19,6 +20,24 @@
19
20
  <dt>Modified</dt>
20
21
  <dd>{{- dctmodified -}}</dd>
21
22
  {%- endif -%}
23
+ {%- assign dctcreators = page.rdf | rdf_property: 'dct:creator', nil, true -%}
24
+ {%- if dctcreators.first -%}
25
+ {%- if dctcreators.size > 1 -%}
26
+ <dt>Creators</dt>
27
+ {%- else -%}
28
+ <dt>Creator</dt>
29
+ {%- endif -%}
30
+ <dd>
31
+ {%- for dctcreator in dctcreators -%}
32
+ {%- if dctcreator.iri -%}
33
+ <a href="{{- dctcreator.iri -}}">{%- include label.html iri = dctcreator.iri -%}</a>
34
+ {%- else -%}
35
+ {{- dctcreator -}}
36
+ {%- endif -%}
37
+ {%- unless forloop.last -%}, {% endunless -%}
38
+ {%- endfor -%}
39
+ </dd>
40
+ {%- endif -%}
22
41
  {%- assign vannPreferredNamespacePrefix = page.rdf | rdf_property: 'vann:preferredNamespacePrefix' -%}
23
42
  {%- if vannPreferredNamespacePrefix -%}
24
43
  <dt>Preferred Namespace Prefix</dt>
@@ -7,7 +7,8 @@
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8
8
 
9
9
  <!-- Bootstrap CSS -->
10
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
10
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
11
+
11
12
  </head>
12
13
  <body>
13
14
 
@@ -15,8 +16,6 @@
15
16
 
16
17
  <!-- Optional JavaScript -->
17
18
  <!-- jQuery first, then Popper.js, then Bootstrap JS -->
18
- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
19
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
20
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
19
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
21
20
  </body>
22
21
  </html>
@@ -72,7 +72,7 @@ rdf_prefix_path: "_data/prefixes.pref"
72
72
  <div class="row">
73
73
  {% include navigation.html iri = result.subject.iri %}
74
74
 
75
- <main role="main" class="container">
75
+ <main role="main" class="container col-sm-9 col-md-10 col-lg-8 col-xl-7">
76
76
  {% include ontology-head.html iri = result.subject.iri %}
77
77
 
78
78
  <h2 id="classes">Overview</h2>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-jod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Tramp
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-21 00:00:00.000000000 Z
12
+ date: 2021-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '3.5'
20
+ version: '4.2'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '3.5'
27
+ version: '4.2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: jekyll-rdf
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: liquid-md5
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 0.0.3
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 0.0.3
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: bundler
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
121
  version: '0'
108
122
  requirements: []
109
123
  rubyforge_project:
110
- rubygems_version: 2.5.2.1
124
+ rubygems_version: 2.7.6.2
111
125
  signing_key:
112
126
  specification_version: 4
113
127
  summary: The JOD theme generates documentation web pages from Ontology turtle documents