jekyll-theme-isotc154 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 172dd76141461729a8366979c167c3719308eb2d5c0c52b1ad6fe1531b0949e6
4
+ data.tar.gz: 3b378c1286121207240960af7c809b89eed199913da646ae2a5d4b2f4adb1478
5
+ SHA512:
6
+ metadata.gz: a30b2d4a966ab45af2d42372c19fb9cae94fa3b370726d3366b2d727b5f3ca2cfacb1b45ae77e9f584283a74691e8f5af1ffd349e02a17af99e591c7e0f1fc9c
7
+ data.tar.gz: ec220ce11cbc020b966444a74d7a0bd84071775617e7b59e6ef1d58c1f13e685a1d5df7b01607fd91e0ed23bdaffe84a7c32ff54bed427f79cb8efcd59bbc612
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Ribose
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ = ISO/TC 154 Jekyll theme
2
+
3
+ Jekyll theme developed by Ribose, intended to be used by official ISO technical committee websites.
4
+
5
+ Currently used by ISO/TC 154: https://www.isotc154.org.
6
+
7
+ == Getting started
8
+
9
+ (Section to be completed.)
10
+
11
+ Add the theme gem
12
+ and corresponding https://github.com/riboseinc/jekyll-theme-isotc154-helpers[helpers plugin gem]
13
+ to your Jekyll website’s Gemfile:
14
+
15
+ [source]
16
+ --
17
+ gem "jekyll-theme-isotc154", "~> 0.1.0"
18
+
19
+ group :jekyll_plugins do
20
+ gem "jekyll-theme-isotc154-heleprs"
21
+ end
22
+ --
@@ -0,0 +1 @@
1
+ {%- assign precision = include.date.precision | default: include.default_precision | default: "month" -%}{%- if precision == "day" -%}{{ include.date.date | date: "%Y<span class='separator'>/</span>%m<span class='separator'>/</span>%d" }}{% elsif precision == "month" %}{{ include.date.date | date: "%Y/%m" }}{% elsif precision == "year" %}{{ include.date.date | date: "%Y" }}{%- endif -%}
@@ -0,0 +1,10 @@
1
+ <ul role="nav">
2
+ {% for item_id in include.items %}
3
+ {% include nav_item.html
4
+ item_id=item_id
5
+ nested_nav_include="event_nav.html"
6
+ item_data=include.item_data
7
+ show_detail=include.show_detail
8
+ select_by_path_depth=3 %}
9
+ {% endfor %}
10
+ </ul>
@@ -0,0 +1,10 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
@@ -0,0 +1,11 @@
1
+ <div class="text">
2
+ <h1 class="title">{{ include.banner.title }}</h1>
3
+ <h2 class="subtitle">{{ include.banner.subtitle }}</h2>
4
+ <div class="body">
5
+ {{ include.banner.body }}
6
+ </div>
7
+ </div>
8
+
9
+ <div class="illustration">
10
+ <img src="{{ include.banner.image_path }}" alt="{{ include.banner.image_alt }}">
11
+ </div>
@@ -0,0 +1,26 @@
1
+ {% if include.links %}
2
+ {% for link in include.links %}
3
+ {% if link.url contains "twitter.com" %}
4
+ <a href="{{ link.url }}" aria-label="{{ link.title | default: "Twitter link" }}">
5
+ <i class="fab fa-twitter"></i>
6
+ </a>
7
+ {% elsif link.url contains "github.com" %}
8
+ <a href="{{ link.url }}" aria-label="{{ link.title | default: "Github link" }}">
9
+ <i class="fab fa-github"></i>
10
+ </a>
11
+ {% elsif link.url contains "facebook.com" %}
12
+ <a href="{{ link.url }}" aria-label="{{ link.title | default: "Facebook" }}">
13
+ <i class="fab fa-facebook"></i>
14
+ </a>
15
+ {% elsif link.url contains "linkedin.com" %}
16
+ <a href="{{ link.url }}" aria-label="{{ link.title | default: "LinkedIn" }}">
17
+ <i class="fab fa-linkedin"></i>
18
+ </a>
19
+ {% else %}
20
+ <a href="{{ link.url }}" aria-label="{{ link.title }}" title="{{ link.title }}">
21
+ <span class="link-title">{{ link.title }}</span>
22
+ <i class="fas fa-external-link-square-alt"></i>
23
+ </a>
24
+ {% endif %}
25
+ {% endfor %}
26
+ {% endif %}
@@ -0,0 +1,75 @@
1
+ {% assign item = include.item_data[include.item_id] %}
2
+
3
+ {% assign equality_check_depth = include.select_by_path_depth | default: 1 | plus: 1 %}
4
+ {% assign url_components = page.url | split: '/' %}
5
+ {% assign num_url_components = url_components | size %}
6
+ {% assign first_component_of_current_url = url_components | slice: 0, equality_check_depth | join: '/' | append: '/' %}
7
+ {% assign first_component_of_link_url = item.url | split: '/' | slice: 0, equality_check_depth | join: '/' | append: '/' %}
8
+
9
+ {% if num_url_components >= equality_check_depth and first_component_of_current_url == first_component_of_link_url %}
10
+ {% assign active = true %}
11
+ {% else %}
12
+ {% assign active = false %}
13
+ {% endif %}
14
+
15
+ {% if include.can_select_active == true or active == false %}
16
+ {% assign linkable = true %}
17
+ {% else %}
18
+ {% assign linkable = false %}
19
+ {% endif %}
20
+
21
+ {% assign num_subitems = item.items | size %}
22
+ {% if num_subitems > 0 and include.nested_nav_include %}
23
+ {% assign shows_subitems = true %}
24
+ {% else %}
25
+ {% assign shows_subitems = false %}
26
+ {% endif %}
27
+
28
+ {% if item %}
29
+ <li
30
+ class="
31
+ nav-item-{{ include.item_id }}
32
+ {% if item.html_class %}{{ item.html_class }}{% endif %}
33
+ {% unless item.url or shows_subitems %}item-missing-page{% endunless %}
34
+ {% if active %}selected{% endif %}
35
+ {% if item.url %}with-url{% endif %}
36
+ {% if item.icon %}with-icon{% endif %}"
37
+ {% if item.description %}
38
+ title="{{ item.description }}"
39
+ {% endif %}>
40
+
41
+ {% if item.url and linkable %}
42
+ <a class="title" href="{{ item.url }}">
43
+ {% else %}
44
+ <span class="title">
45
+ {% endif %}
46
+
47
+ {%- if item.icon -%}
48
+ <i class="fas fa-{{ item.icon }} icon"></i>
49
+ {%- endif -%}
50
+ {{- item.title -}}
51
+
52
+ {% if item.url and linkable %}
53
+ </a><!-- .title -->
54
+ {% else %}
55
+ </span><!-- .title -->
56
+ {% endif %}
57
+
58
+ {% if include.show_detail %}
59
+ {% if item.detail.include %}
60
+ <div class="detail detail-include">
61
+ {% include {{ item.detail.include }} %}
62
+ </div>
63
+ {% elsif item.detail.text %}
64
+ <div class="detail detail-text">
65
+ {{ item.detail.text | asciidocify }}
66
+ </div>
67
+ {% endif %}
68
+ {% endif %}
69
+
70
+ {% if shows_subitems %}
71
+ {% include {{ include.nested_nav_include }} show_detail=include.show_detail item_data=include.item_data items=item.items %}
72
+ {% endif %}
73
+
74
+ </li>
75
+ {% endif %}
@@ -0,0 +1,169 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html
4
+ {% if site.google_analytics %}
5
+ data-gaid="{{ site.google_analytics.id }}"
6
+ {% endif %}
7
+ lang="{{ page.lang | default: site.lang | default: "en" }}">
8
+
9
+ <head>
10
+ <meta charset="utf-8">
11
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
12
+ <meta name="viewport" content="width=device-width, initial-scale=1">
13
+
14
+ <title>
15
+ {% assign page_title = page.title | default: layout.title %}
16
+
17
+ {% if page.layout == 'group' %}
18
+ {{ page.name | strip_html }}: {{ page_title | strip_html }} —
19
+ {% elsif page.layout == 'standard' %}
20
+ Standard {{ page.name | strip_html }} —
21
+ {% elsif page.layout contains 'event' %}
22
+ {% if page_title and page_title != "Landing" %}{{ page_title | strip_html }} —{% endif %}
23
+ {{ site.data.events[page.event_id].title | strip_html }} —
24
+ {% elsif page_title %}
25
+ {{ page_title | strip_html | escape }} —
26
+ {% endif %}
27
+
28
+ {{ site.description }}
29
+ </title>
30
+
31
+ <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32" />
32
+ <link rel="icon" type="image/png" href="/images/android-chrome-192x192.png" sizes="192x192" />
33
+ <link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96" />
34
+ <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16" />
35
+ <link rel="shortcut icon" href="/favicon.ico" />
36
+
37
+ <meta name="msapplication-TileColor" content="#ffffff" />
38
+ <meta name="msapplication-TileImage" content="/images/mstile-144x144.png" />
39
+ <meta name="msapplication-config" content="/browserconfig.xml" />
40
+ <meta name="theme-color" content="#ffffff" />
41
+
42
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
43
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
44
+ <!--[if lt IE 9]>
45
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
46
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
47
+ <![endif]-->
48
+
49
+ <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-LRlmVvLKVApDVGuspQFnRQJjkv0P7/YFrw84YYQtmYG4nK8c+M+NlmYDCv0rKWpG" crossorigin="anonymous">
50
+ <link rel="stylesheet" type="text/css" href="{{ "/assets/css/style.css" | relative_url }}" />
51
+
52
+ {% if page.stylesheets and layout.stylesheets %}
53
+ {% assign extra_stylesheets = page.extra_stylesheets | concat: layout.extra_stylesheets %}
54
+ {% else %}
55
+ {% assign extra_stylesheets = page.extra_stylesheets | default: layout.extra_stylesheets %}
56
+ {% endif %}
57
+ {% for link in extra_stylesheets %}
58
+ <link href="{{ link.href }}" rel="stylesheet">
59
+ {% endfor %}
60
+
61
+ <link rel="canonical" href="{{ page.url | replace: 'index.html', '' | relative_url }}" />
62
+
63
+ {% if jekyll.environment == 'production' and site.google_analytics %}
64
+ <script src="{{ "/assets/ga.js" | relative_url }}"></script>
65
+ {% endif %}
66
+
67
+ </head>
68
+
69
+ <body class="{{ page.html_class | default: layout.html_class }} layout--{{ page.layout }}">
70
+ <header class="top-bar">
71
+ <div class="container">
72
+ <div class="iso-logo">
73
+ <a href="/" class="logo-link">
74
+ <img src="{{ "/assets/img/logo-iso-noninverted.svg" | relative_url }}" alt="ISO">
75
+ </a>
76
+ </div>
77
+
78
+ <h1>
79
+ <a href="/" class="logo-link">
80
+ <span class="org-name">ISO</span>/TC 154
81
+ </a>
82
+ </h1>
83
+
84
+ {% assign nav_items = page.nav_items | default: layout.nav_items | default: site.primary_nav_items %}
85
+ <ul role="nav" class="priority-nav" aria-label="main site menu">
86
+ {% for item_id in nav_items %}
87
+ {% include nav_item.html can_select_active=true item_id=item_id item_data=site.nav select_by_path_depth=1 %}
88
+ {% endfor %}
89
+ </ul>
90
+ </div>
91
+ </header>
92
+
93
+ {{ content }}
94
+
95
+ {% if site.awards and page.hide_awards != true %}
96
+ <p class="awards">
97
+ <i class="fa fa-certificate icon"></i>
98
+ Winner of
99
+ {% for award in site.awards %}
100
+ <span class="award">the <a href="{{ award.path }}"
101
+ >{{ award.title }}</a>{%- unless forloop.last -%}, {% endunless %}</span>{% endfor %}.
102
+ </p>
103
+ {% endif %}
104
+
105
+ <footer>
106
+ <div class="container">
107
+ <div class="row1">
108
+ <div class="logo">
109
+ <a href="https://iso.org/" class="logo-link">
110
+ <img src="{{ "/assets/img/logo-iso-noninverted.svg" | relative_url }}" alt="ISO">
111
+ </a>
112
+ </div>
113
+
114
+ <ul role="nav" class="links" aria-label="footer links">
115
+ {% assign footer_nav_items = page.footer_nav_items | default: layout.footer_nav_items | default: site.footer_nav_items %}
116
+ {% for item in footer_nav_items %}
117
+ {% assign item_data = site.nav[item] %}
118
+ <li><a href="{{ item_data.url }}">{{ item_data.title }}</a>
119
+ {% endfor %}
120
+ </ul>
121
+
122
+ <div class="powered-by">
123
+ <span class="powered-by__text">Powered by</span>
124
+ <a class="powered-by__org" href="https://open.ribose.com/">
125
+ <img
126
+ src="{{ "/assets/img/logo-ribose.svg" | relative_url }}"
127
+ alt="Ribose">
128
+ </a>
129
+ </div>
130
+ </div>
131
+
132
+ <div class="row2">
133
+ <p class="copyright">
134
+ &copy; All Rights Reserved
135
+ </p>
136
+
137
+ <ul class="social-links">
138
+ {% for link in site.social.links %}
139
+ <li>
140
+ <a href="{{ link.url }}">
141
+ {% if link.url contains "twitter.com" %}
142
+ <i class="fab fa-twitter"></i>
143
+ {% elsif link.url contains "github.com" %}
144
+ <i class="fab fa-github"></i>
145
+ {% elsif link.url contains "facebook.com" %}
146
+ <i class="fab fa-facebook"></i>
147
+ {% elsif link.url contains "linkedin.com" %}
148
+ <i class="fab fa-linkedin"></i>
149
+ {% else %}
150
+ {{ link.title }}
151
+ {% endif %}
152
+ </a>
153
+ {% endfor %}
154
+ </ul>
155
+ </div>
156
+ </div>
157
+ </footer>
158
+
159
+ {% if page.scripts and layout.scripts %}
160
+ {% assign extra_scripts = page.extra_scripts | concat: layout.extra_scripts %}
161
+ {% else %}
162
+ {% assign extra_scripts = page.extra_scripts | default: layout.extra_scripts %}
163
+ {% endif %}
164
+ {% for script in extra_scripts %}
165
+ <script src="{{ script.src }}"></script>
166
+ {% endfor %}
167
+
168
+ </body>
169
+ </html>
@@ -0,0 +1,85 @@
1
+ ---
2
+ layout: event_subpage
3
+ title: Lodging
4
+ map:
5
+ id: accommodation-map
6
+ ---
7
+
8
+ {% assign event = site.data.events[page.event_id] %}
9
+
10
+ <div class="accommodation-option-list">
11
+ {% for opt in event.accommodation_options %}
12
+ <article class="accommodation-option">
13
+
14
+ <header>
15
+ <h2 class="title">
16
+ {% if opt.lon and opt.lat %}
17
+ <span
18
+ data-map-marker
19
+ data-map-id="{{ layout.map.id }}"
20
+ data-map-marker-id="{{ opt.name }}"
21
+ data-map-marker-coords='{"lon": {{ opt.lon }}, "lat": {{ opt.lat }}}'
22
+ data-map-marker-place-details='{"title": "{{ opt.name }}"}'>
23
+ {{ opt.name }}
24
+ </span>
25
+ {% else %}
26
+ {{ opt.name }}
27
+ {% endif %}
28
+ </h2>
29
+
30
+ {% if opt.feature_label %}
31
+ <div class="feature">
32
+ {{ opt.feature_label }}
33
+ </div>
34
+ {% endif %}
35
+
36
+ {% if opt.address %}
37
+ <p class="address"><a href="https://maps.google.com/?q={{ opt.name }} {{ opt.address | escape }}" target="_blank">{{ opt.address }}</a>
38
+ {% endif %}
39
+ </header>
40
+
41
+ {% if opt.details %}
42
+ <section class="details">
43
+ {{ opt.details | asciidocify }}
44
+ </section>
45
+ {% endif %}
46
+
47
+ {% if opt.room_rate_range %}
48
+ <section class="room-rate-range">
49
+ <p>Typical room rates:
50
+ <p class="price">{{ opt.room_rate_range }}
51
+ </section>
52
+ {% endif %}
53
+
54
+ {% if opt.rooms %}
55
+ <section class="rooms">
56
+ <p>
57
+ Room rates:
58
+ </p>
59
+ {% for room in opt.rooms %}
60
+ <article class="room">
61
+ <p class="price">
62
+ {{ room.rates.nightly.amount }} per night
63
+ ({{ room.desc }}).
64
+ </article>
65
+ {% endfor %}
66
+ </section>
67
+ {% endif %}
68
+
69
+ {% if opt.actions %}
70
+ <footer class="actions">
71
+ {% for action in opt.actions %}
72
+ <div class="action {% if action.disabled %}disabled{% endif %} {% if action.description %}with-description{% endif %}" title="{{ action.description }}">
73
+ {% if action.link %}
74
+ <a href="{{ action.link }}">{{ action.label }}</a>
75
+ {% else %}
76
+ <span>{{ action.label }}</span>
77
+ {% endif %}
78
+ </div>
79
+ {% endfor %}
80
+ </footer>
81
+ {% endif %}
82
+
83
+ </article>
84
+ {% endfor %}
85
+ </div>