jekyll-geolexica 1.1.0 → 1.3.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
2
  SHA256:
3
- metadata.gz: 90aed72e13d7b285de7113cf3231c50b8ea04dfc8c06c80bf45df61ed7d4d301
4
- data.tar.gz: 485560b1968f797be418f15853f008f6646efbe98abced8b0421b7b2b2486627
3
+ metadata.gz: 937aa9a815af279fa491c305325b4568ead482dddab2b23cbebcf2f491f1477c
4
+ data.tar.gz: aaf706f1a2063e6ee0366ac6472be181d8c8e66a14d504a1423436c14837c2f0
5
5
  SHA512:
6
- metadata.gz: e33f4abb1a3f956799c9cc321764b67116f33e1381da2912807b76cd30d1e87c238d2613924ebd394f68edc6c63857980b498afecc3e53934448411e86e49a3f
7
- data.tar.gz: 4dbad8be3f6ca2baa24b49b49bcb24edcdeee63c7c752990f4fc57ac3144b44332802f84f653f373040cb0dfa5f0d01b47ffed98b4923039df1aa8a7e9a372e2
6
+ metadata.gz: c321a94dee1c5dfbe9f209b05c0b0884335ce66d49c2714f0b311d79148f681b25f0ee381961b947a385d3d1ecd022a10d11e0899dfeaad8ec7869a8e343ae11
7
+ data.tar.gz: a00ce82e212b750ea978e69ed53c2060c7de7cbf11711fe6d0ebae91686ee95e82de0bbb07711ac09ad015263167a6d1df3f0712d768559dce22ba46ccb2a47b
@@ -56,6 +56,7 @@ collections:
56
56
 
57
57
  geolexica:
58
58
  concepts_glob: "./geolexica-database/concepts/*.yaml"
59
+ concept_date_format: "%F"
59
60
  term_languages:
60
61
  - eng
61
62
  formats:
@@ -0,0 +1,12 @@
1
+ {%- assign gaid = site.google_analytics.id -%}
2
+ {%- if jekyll.environment == 'production' and gaid -%}
3
+ <!-- Global site tag (gtag.js) - Google Analytics -->
4
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ gaid }}"></script>
5
+ <script>
6
+ window.dataLayer = window.dataLayer || [];
7
+ function gtag(){dataLayer.push(arguments);}
8
+ gtag("js", new Date());
9
+
10
+ gtag("config", "{{ gaid }}");
11
+ </script>
12
+ {%- endif -%}
@@ -12,11 +12,11 @@
12
12
  {% endif -%}
13
13
 
14
14
  {% if english.date_accepted -%}
15
- <li>date accepted: {{ english.date_accepted | date: "%F" }}</li>
15
+ <li>date accepted: {{ english.date_accepted | date: site.geolexica.concept_date_format }}</li>
16
16
  {% endif -%}
17
17
 
18
18
  {% if english.date_amended -%}
19
- <li>date amended: {{ english.date_amended | date: "%F" }}</li>
19
+ <li>date amended: {{ english.date_amended | date: site.geolexica.concept_date_format }}</li>
20
20
  {%- endif %}
21
21
  </ul>
22
22
  </div>
@@ -6,7 +6,7 @@
6
6
  <dl class="review">
7
7
  <div class="review-info">
8
8
  <dt>last review performed:</dt>
9
- <dd>({{ english.review_date | date: "%F" }})</dd>
9
+ <dd>({{ english.review_date | date: site.geolexica.concept_date_format }})</dd>
10
10
  </div>
11
11
  {% if english.review_status -%}
12
12
  <div class="review-info">
@@ -0,0 +1,23 @@
1
+ <div class="all-concepts">
2
+ <table>
3
+ <thead>
4
+ <tr>
5
+ <th class="field-termid">Term ID
6
+ <th class="field-term">Term
7
+ </tr>
8
+ </thead>
9
+
10
+ <tbody>
11
+ {% for concept in include.concepts %}
12
+ <tr>
13
+ <td class="field-termid">
14
+ <a href="{{ concept.url | relative_url }}">{{ concept.termid }}</a>
15
+ </td>
16
+ <td class="field-term">
17
+ <a href="{{ concept.url | relative_url }}">{{ concept.term }}</a>
18
+ </td>
19
+ </tr>
20
+ {% endfor %}
21
+ </tbody>
22
+ </table>
23
+ </div>
@@ -1,10 +1,13 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+
5
+ {% include analytics.html %}
6
+
4
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
8
  <meta name="description" content="{{ site.description }}">
6
9
 
7
- <title>{% include _title.html %}</title>
10
+ <title>{% include title.html %}</title>
8
11
 
9
12
  <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32" />
10
13
  <link rel="icon" type="image/png" href="/images/android-chrome-192x192.png" sizes="192x192" />
@@ -41,9 +44,4 @@
41
44
  <![endif]-->
42
45
 
43
46
  <link rel="stylesheet" type="text/css" href="{{ "/assets/style.css" | relative_url }}" />
44
-
45
- {% if jekyll.environment == 'production' and site.google_analytics %}
46
- <script src="{{ "/assets/js/ga.js" | relative_url }}"></script>
47
- {% endif %}
48
-
49
47
  </head>
@@ -37,7 +37,7 @@
37
37
  </p>
38
38
  {% endif %}
39
39
  <span class="warning">
40
- This translated term may not be from the same source as the definitive term. Use at your own risk.
40
+ This translated term may not be from the same source as the normative term.
41
41
  </span>
42
42
  {% endif %}
43
43
 
@@ -0,0 +1,7 @@
1
+ {% comment %}
2
+ <script type="text/javascript">
3
+ // Here configure MathJax, if needed.
4
+ </script>
5
+ {% endcomment -%}
6
+
7
+ <script id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
@@ -0,0 +1,2 @@
1
+ {% assign title = page.term | default: page.title | default: site.title -%}
2
+ {{ title | escape }} — {{ site.tagline | escape -}}
@@ -1,9 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
 
3
3
  <html
4
- {% if site.google_analytics %}
5
- data-gaid="{{ site.google_analytics.id }}"
6
- {% endif %}
7
4
  lang="{{ page.lang | default: site.lang | default: "en" }}">
8
5
 
9
6
  {% include head.html %}
@@ -153,6 +150,10 @@
153
150
 
154
151
  {% include script.html %}
155
152
 
153
+ {% if site.geolexica.math %}
154
+ {%- include math-config.html -%}
155
+ {% endif %}
156
+
156
157
  <template id="expandableNavTrigger">
157
158
  <button class="nav-expand-trigger">
158
159
  <i class="fas fa-bars"></i>
@@ -9,30 +9,8 @@ title: All Concepts
9
9
 
10
10
  The concepts below are sorted by term name, alphabetically, in a case-insensitive way.
11
11
 
12
- ++++
13
- {% assign sortedConcepts = site.concepts | sort_natural: "term" %}
14
-
15
- <div class="all-concepts">
16
- <table>
17
- <thead>
18
- <tr>
19
- <th class="field-termid">Term ID
20
- <th class="field-term">Term
21
- </tr>
22
- </thead>
12
+ {% assign sorted_concepts = site.concepts | sort_natural: "term" -%}
23
13
 
24
- <tbody>
25
- {% for concept in sortedConcepts %}
26
- <tr>
27
- <td class="field-termid">
28
- <a href="{{ concept.url | relative_url }}">{{ concept.termid }}</a>
29
- </td>
30
- <td class="field-term">
31
- <a href="{{ concept.url | relative_url }}">{{ concept.term }}</a>
32
- </td>
33
- </tr>
34
- {% endfor %}
35
- </tbody>
36
- </table>
37
- </div>
14
+ ++++
15
+ {% include concepts-list.html concepts=sorted_concepts %}
38
16
  ++++
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: null
3
+ permalink: "/robots.txt"
4
+ ---
5
+ {%- if jekyll.environment == "production" -%}
6
+ User-agent: *
7
+ Sitemap: {{ "sitemap.xml" | absolute_url }}
8
+ {%- else -%}
9
+ User-agent: *
10
+ Disallow: /
11
+ {%- endif %}
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Jekyll
5
5
  module Geolexica
6
- VERSION = "1.1.0".freeze
6
+ VERSION = "1.3.1".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-geolexica
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2020-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -111,19 +111,22 @@ files:
111
111
  - README.adoc
112
112
  - _config.yml
113
113
  - _data/lang.yaml
114
- - _includes/_title.html
114
+ - _includes/analytics.html
115
115
  - _includes/concept-api-links.html
116
116
  - _includes/concept-header.html
117
117
  - _includes/concept-info.html
118
118
  - _includes/concept-lead-info.html
119
119
  - _includes/concept-review.html
120
120
  - _includes/concept-source.html
121
+ - _includes/concepts-list.html
121
122
  - _includes/head.html
122
123
  - _includes/localized-concept.html
124
+ - _includes/math-config.html
123
125
  - _includes/newsroll-entry.html
124
126
  - _includes/page-header.html
125
127
  - _includes/resource-tree-item.html
126
128
  - _includes/script.html
129
+ - _includes/title.html
127
130
  - _layouts/base-page.html
128
131
  - _layouts/concept.html
129
132
  - _layouts/concept.jsonld.html
@@ -144,6 +147,7 @@ files:
144
147
  - _pages/concepts.adoc
145
148
  - _pages/index.adoc
146
149
  - _pages/posts.adoc
150
+ - _pages/robots.txt
147
151
  - _pages/stats.adoc
148
152
  - _pages/stats.json
149
153
  - _sass/adoc-markup.scss
@@ -163,7 +167,6 @@ files:
163
167
  - assets/algolia-search.js
164
168
  - assets/js/concept-search-worker.js
165
169
  - assets/js/concept-search.js
166
- - assets/js/ga.js
167
170
  - assets/js/nav.js
168
171
  - assets/js/resource-browser.js
169
172
  - assets/logo-ribose.svg
@@ -1,5 +0,0 @@
1
- {% if page.term %}{{ page.term | escape }} —
2
- {% elsif page.title %}{{ page.title | escape }} —
3
- {% else %}{{ site.title | escape }} —
4
- {% endif %}
5
- {{ site.tagline | escape }}
@@ -1,15 +0,0 @@
1
- (function () {
2
-
3
- var gaid = document.documentElement.getAttribute('data-gaid');
4
-
5
- if (gaid) {
6
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
7
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
8
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
9
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
10
-
11
- ga('create', gaid, 'auto');
12
- ga('send', 'pageview');
13
- }
14
-
15
- }());