Skip to content

Commit a3cbedf

Browse files
committed
Added new collection for unlocode-lists and added terms and privacy pages.
1 parent d8775be commit a3cbedf

File tree

263 files changed

+112
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+112
-34
lines changed

_config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ collections:
1818
code-lists:
1919
output: true
2020
permalink: /:name
21+
unlocode-lists:
22+
output: true
23+
permalink: /:name
2124

2225
defaults:
2326
-
@@ -46,6 +49,13 @@ defaults:
4649
values:
4750
layout: "code-list"
4851
type: "code-list"
52+
-
53+
scope:
54+
path: ""
55+
type: "unlocode-lists"
56+
values:
57+
layout: "code-list"
58+
type: "unlocode-list"
4959

5060
sass:
5161
sourcemap: development

_includes/breadcrumbs.html

+4-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
<div class="breadcrumbs">
33
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
44
<a href="/">Home</a>
5-
{% if pageType == 'classes' %}
6-
/ <a href="{{ 'classes' | absolute_url }}">Classes</a>
7-
{% endif %}
8-
{% if pageType == 'properties' %}
9-
/ <a href="{{ 'properties' | absolute_url }}">Properties</a>
10-
{% endif %}
11-
{% if pageType == 'code-lists' %}
12-
/ <a href="{{ 'code-lists' | absolute_url }}">Code Lists</a>
5+
{% if pageType == 'unlocode-lists' %}
6+
/ <a href="{{ 'unlocode-about' | absolute_url }}">UN/LOCODEs</a>
7+
{% else %}
8+
/ <a href="{{ 'home' | absolute_url }}">BSP</a>
139
{% endif %}
1410
/ {{ page.title }}
1511
</div>

_includes/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
&copy; United Nations Economic Commission for Europe
55
</div>
66
<div class="footer__nav">
7-
<a href="">Terms and Conditions of Use</a>
8-
<a href="">Privacy Notice</a>
7+
<a href="{{ 'terms' | absolute_url }}">Terms and Conditions of Use</a>
8+
<a href="{{ 'privacy' | absolute_url }}">Privacy Notice</a>
99
</div>
1010
</div>
1111
</footer>

_includes/header.html

+24-22
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,32 @@
77
</a>
88
</div>
99
<div class="header__nav">
10-
{% include search.html %}
11-
<div class="main-nav" id="js-main-nav">
12-
<button type="button" class="mobile-nav-btn" id="js-mobile-nav-toggle">
13-
<svg width="23px" height="23px" viewBox="0 0 23 23" version="1.1" xmlns="http://www.w3.org/2000/svg"
14-
xmlns:xlink="http://www.w3.org/1999/xlink">
15-
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"
16-
stroke-linecap="round" stroke-linejoin="round">
17-
<g id="Mobile---Header" transform="translate(-341.000000, -38.000000)" stroke="#4C4845"
18-
stroke-width="2">
19-
<g id="Navigation-Icon" transform="translate(342.000000, 39.000000)">
20-
<line x1="21" y1="0.954545455" x2="0" y2="0.954545455" id="Path"></line>
21-
<line x1="21" y1="10.5" x2="0" y2="10.5" id="Path"></line>
22-
<line x1="21" y1="20.0454545" x2="0" y2="20.0454545" id="Path"></line>
10+
{% if pageType != 'unlocode-list' %}
11+
{% include search.html %}
12+
<div class="main-nav" id="js-main-nav">
13+
<button type="button" class="mobile-nav-btn" id="js-mobile-nav-toggle">
14+
<svg width="23px" height="23px" viewBox="0 0 23 23" version="1.1" xmlns="http://www.w3.org/2000/svg"
15+
xmlns:xlink="http://www.w3.org/1999/xlink">
16+
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"
17+
stroke-linecap="round" stroke-linejoin="round">
18+
<g id="Mobile---Header" transform="translate(-341.000000, -38.000000)" stroke="#4C4845"
19+
stroke-width="2">
20+
<g id="Navigation-Icon" transform="translate(342.000000, 39.000000)">
21+
<line x1="21" y1="0.954545455" x2="0" y2="0.954545455" id="Path"></line>
22+
<line x1="21" y1="10.5" x2="0" y2="10.5" id="Path"></line>
23+
<line x1="21" y1="20.0454545" x2="0" y2="20.0454545" id="Path"></line>
24+
</g>
2325
</g>
2426
</g>
25-
</g>
26-
</svg>
27-
</button>
28-
<nav class="main-nav__menu">
29-
<a class="main-nav__link{% if pageType == 'class' %} main-nav__link--active{% endif %}" href="{{ 'classes' | absolute_url }}">Classes</a>
30-
<a class="main-nav__link{% if pageType == 'property' %} main-nav__link--active{% endif %}" href="{{ 'properties' | absolute_url }}">Properties</a>
31-
<a class="main-nav__link{% if pageType == 'code-list' %} main-nav__link--active{% endif %}" href="{{ 'code-lists' | absolute_url }}">Code Lists</a>
32-
</nav>
33-
</div>
27+
</svg>
28+
</button>
29+
<nav class="main-nav__menu">
30+
<a class="main-nav__link{% if pageType == 'class' %} main-nav__link--active{% endif %}" href="{{ 'classes' | absolute_url }}">Classes</a>
31+
<a class="main-nav__link{% if pageType == 'property' %} main-nav__link--active{% endif %}" href="{{ 'properties' | absolute_url }}">Properties</a>
32+
<a class="main-nav__link{% if pageType == 'code-list' %} main-nav__link--active{% endif %}" href="{{ 'code-lists' | absolute_url }}">Code Lists</a>
33+
</nav>
34+
</div>
35+
{% endif %}
3436
</div>
3537
</div>
3638
</header>

_sass/_common.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ html, body {
44

55
body {
66
font-family: $font-family;
7-
color: $app-blue;
7+
color: $app-text;
88
background: #F8F9F9;
99
display: flex;
1010
flex-direction: column;

_sass/_content.scss

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ h4 {
5454
p {
5555
margin: 0 0 15px 0;
5656
text-align: justify;
57+
font-weight: 300;
5758
}
5859

5960
ul, ol {

index.html home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
permalink: /
3+
permalink: /home
44
class: home
55
---
66

pages/privacy.md

+11

pages/terms.md

+57

pages/unlocode-about.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
permalink: unlocode-about
44
type: default
55
class: white unlocode
6+
hideMenu: true
67
---
78
<div class="home-content">
89
<h1 class="home-content__title">UN/CEFACT Web Vocabularies</h1>

0 commit comments

Comments
 (0)