linaro-jekyll-theme 4.3.0 → 5.0.0

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: a366c769d532011c265a81837fd1525ca2b532aba0480ca052f2766d5856026b
4
- data.tar.gz: ae310377d184f0dc5f4f3342389366fa19aa50caf52da6a6e0f575d1a012a201
3
+ metadata.gz: b18f6bead92e40f953c0b493b8fb72c5535cf1cfdee5a33b2a43e33466b9d860
4
+ data.tar.gz: 99a3a4466a2e7fc3c580996310a99dd2633276011348eb45929b0f575ec3a6a5
5
5
  SHA512:
6
- metadata.gz: 10bf8266a08badcab4a49bb16895ace028a5294758ef47b3d69c483b3a2cc998af78211751dac1fef706c9331452328d56b2488224ba4c88ebee51273372a687
7
- data.tar.gz: '039aebb1d6dd20d3187d15399f3e48ba85831b922dfb9d4ac6a496d3c616963c2d943921af2d53774256df7d0e439e70f8c53aa535a5c8d44164768084efa27f'
6
+ metadata.gz: 6014f89a8d70dc54120c316d993d99211c313c409a845f2ef0f999e70c2a2ba287d611aa40c4c73d005c6de473bd8b8d73c30d60d13cd7b9f5cab2542a85f0c0
7
+ data.tar.gz: e500a8d02654defdec7ad25832782c09e5af12be3ed4169be77adbc19a8b3dd10949d2f9210899fd253119d8f0c35533df1631d00caf07d2ae413a6f14b2c53f
data/_config.yml CHANGED
@@ -23,12 +23,14 @@ exclude:
23
23
  - _static-site
24
24
  - .sass-cache
25
25
  - _site
26
+ - scripts
26
27
  - linaro-jekyll-theme*.gem
27
28
  - linaro-jekyll-theme*.gemspec
28
29
  sass:
29
30
  style: compressed
30
31
  load_paths:
31
32
  - assets/css
33
+ sourcemap: "never"
32
34
  plugins:
33
35
  - japr
34
36
  - jekyll_picture_tag
@@ -45,11 +47,23 @@ defaults:
45
47
  path: ""
46
48
  values:
47
49
  layout: flow
50
+ lang: en
48
51
  - scope:
49
52
  type: posts
50
53
  path: "_posts"
51
54
  values:
52
55
  layout: post
56
+ lang: en
57
+ is_post: true
58
+ comments: true
59
+ tags_enabled: true
60
+ strap_image: /assets/images/breadcrumb-image.jpg
61
+ - scope:
62
+ type: posts
63
+ path: "_posts/ja"
64
+ values:
65
+ layout: post
66
+ lang: ja
53
67
  is_post: true
54
68
  comments: true
55
69
  tags_enabled: true
@@ -60,6 +74,9 @@ defaults:
60
74
  values:
61
75
  layout: author
62
76
  include: ["_pages"]
77
+ livereload_ignore:
78
+ - .asset_pipeline/assets/js/*.js
79
+ - .asset_pipeline/assets/js/*.js.gz
63
80
  # ----------- THEME / WEBSITE CONFIG ---------------------
64
81
  # Blog images/thumbs dir
65
82
  blog_images_dir: assets/images/content/
@@ -190,7 +207,7 @@ readme_index:
190
207
  picture:
191
208
  nomarkdown: false
192
209
  source: ""
193
- output: "assets/images"
210
+ output: ""
194
211
  relative_url: true
195
212
  # -------- japr --------
196
213
  asset_pipeline:
@@ -208,3 +225,10 @@ toc:
208
225
  sublist_class: "list-group"
209
226
  item_class: toc-entry
210
227
  item_prefix: toc-
228
+ # Jekyll-polyglot
229
+ i18n_enabled: true
230
+ languages: ["en", "ja"]
231
+ default_lang: "en"
232
+ exclude_from_localization:
233
+ ["javascript", "images", "css", "public", "assets", "assets/images"]
234
+ parallel_localization: false
@@ -0,0 +1,13 @@
1
+ # Copyright text to be displayed at the very bottom of the footer
2
+ copyright_text: Linaro Limited
3
+ # Set this to false if you do not want the Linaro logo in the footer.
4
+ footer_brand:
5
+ url: https://www.linaro.org
6
+ alt: Linaro Logo
7
+ path: /assets/images/Linaro-logo-white.png
8
+ # These links are displayed at the very bottom of the footer.
9
+ company_links:
10
+ - name: 法的
11
+ url: /legal/
12
+ - name: コンタクト
13
+ url: /contact/
data/_data/ja/nav.yml ADDED
@@ -0,0 +1,39 @@
1
+ universal_nav: true
2
+ search:
3
+ enabled: true
4
+ label: Linaro
5
+ expand_breakpoint: lg
6
+ brand:
7
+ # custom_include: nav/brand.html
8
+ path: /assets/images/Linaro-Logo.svg
9
+ alt: Linaro logo
10
+ pages:
11
+ - title: 特徴
12
+ options:
13
+ - text: ページヘッダー
14
+ options:
15
+ - text: ビデオヘッダー
16
+ url: /ja/features/video-header/
17
+ - text: スライダーヘッダー
18
+ url: /ja/features/slider-header/
19
+ - text: 背景画像ヘッダー
20
+ url: /ja/features/background-image-header/
21
+ - text: ヘッダ
22
+ url: /ja/features/header/
23
+ - text: パンくず
24
+ url: /ja/features/breadcrumb/
25
+ - text: ヘッダーなし
26
+ url: /ja/features/no-header/
27
+ - text: レイアウト
28
+ options:
29
+ - text: フロー
30
+ url: /ja/flow/
31
+ - text: 役職
32
+ url: /ja/post/
33
+ - url: /ja/documentation-page/
34
+ text: ドキュメントページ
35
+ - title: GitHubで表示
36
+ url: https://www.github.com/linaro-marketing/linaro-jekyll-theme
37
+ external: true
38
+ - url: /ja/blog/
39
+ title: ブログ
@@ -0,0 +1,24 @@
1
+ pages:
2
+ # - list:
3
+ # - title: Blog
4
+ # url: /blog/
5
+ # sub-pages: true
6
+ # - title: Flow Layout
7
+ # url: /flow/
8
+ # right: true
9
+ # urls: [/, /flow/]
10
+ - list:
11
+ - title: ドキュメントの例
12
+ url: /documentation-page/
13
+ sub-pages: true
14
+ - title: 入門
15
+ url: /flow/
16
+ urls: [/documentation-page/]
17
+ - list:
18
+ - title: __current_page__
19
+ url: __current_page__
20
+ sub-pages: true
21
+ - title: 入門
22
+ url: /flow/
23
+ sub-pages-enabled: true
24
+ urls: [/]
@@ -0,0 +1,35 @@
1
+ items:
2
+ - active: true
3
+ title: Linaro
4
+ url: "https://www.linaro.org/"
5
+ - title: Connect
6
+ url: "https://connect.linaro.org"
7
+ - title: 96Boards
8
+ url: "https://www.96boards.org"
9
+ - title: Twitter
10
+ icon: icon-twitter
11
+ url: "https://twitter.com/LinaroOrg"
12
+ - title: Facebook
13
+ icon: icon-facebook
14
+ url: "http://facebook.com/LinaroOrg"
15
+ - title: LinkedIn
16
+ icon: icon-linkedin
17
+ url: "https://www.linkedin.com/company/1026961"
18
+ - title: YouTube
19
+ icon: icon-youtube
20
+ url: "https://www.youtube.com/LinaroOrg"
21
+ - options:
22
+ - title: 96Boards.ai
23
+ url: "https://www.96boards.ai"
24
+ - title: Developer Cloud
25
+ url: "https://linaro.cloud"
26
+ - title: devicetree.org
27
+ url: "https://www.devicetree.org"
28
+ - title: OpenAMP
29
+ url: "https://www.openampproject.org"
30
+ - title: OP-TEE
31
+ url: "https://www.op-tee.org"
32
+ - title: Trusted Firmware
33
+ url: "https://www.trustedfirmware.org/"
34
+ hamburger_toggle: true
35
+ title: プロジェクト
data/_data/nav.yml CHANGED
@@ -8,6 +8,8 @@ brand:
8
8
  path: /assets/images/Linaro-Logo.svg
9
9
  alt: Linaro logo
10
10
  pages:
11
+ - url: /about/
12
+ title: About
11
13
  - title: Features
12
14
  options:
13
15
  - text: Page Headers
@@ -32,55 +34,55 @@ pages:
32
34
  url: /post/
33
35
  - url: /documentation-page/
34
36
  text: Documentation Page
35
- - options:
36
- - text: Overview
37
- url: /engineering/
38
- external: true
39
- - text: Artificial Intelligence
40
- url: /engineering/artificial-intelligence/
41
- - text: Autonomous Vehicles
42
- url: /engineering/autonomous-vehicles/
43
- - text: Consumer
44
- url: /engineering/consumer/
45
- - text: Core Engineering on Arm
46
- options:
47
- - text: Overview
48
- url: /engineering/core/
49
- - text: Core Technologies & Tools
50
- url: /engineering/core/ctt/
51
- - text: Kernel Validation
52
- url: /engineering/core/kernel-validation-and-testing/
53
- - text: Toolchain
54
- url: /engineering/core/toolchain/
55
- - text: Kernel
56
- url: /engineering/core/kernel/
57
- - text: Power Management
58
- url: /engineering/core/arm-power-management/
59
- - text: Power Management EAS
60
- options:
61
- - text: Flow
62
- url: /flow/
63
- - text: Post
64
- url: /post/
65
- - url: /documentation-page/
66
- text: Documentation Page
67
- - text: Power Management Farm
68
- url: /engineering/core/arm-power-management/pmwg-farm/
69
- - text: Security
70
- url: /engineering/core/security/
71
- - text: Devicetree Evolution
72
- url: /engineering/core/devicetree-evolution/
73
- - text: Datacenter & Cloud
74
- url: /engineering/datacenter-and-cloud/
75
- - text: Edge & Fog Computing
76
- url: /engineering/edge-and-fog-computing/
77
- - text: High Performance Computing
78
- url: /engineering/high-performance-computing/
79
- - text: IoT & Embedded
80
- url: /engineering/iot-and-embedded/
81
- - text: Multimedia
82
- url: /engineering/multimedia/
83
- title: Engineering
37
+ # - options:
38
+ # - text: Overview
39
+ # url: /engineering/
40
+ # external: true
41
+ # - text: Artificial Intelligence
42
+ # url: /engineering/artificial-intelligence/
43
+ # - text: Autonomous Vehicles
44
+ # url: /engineering/autonomous-vehicles/
45
+ # - text: Consumer
46
+ # url: /engineering/consumer/
47
+ # - text: Core Engineering on Arm
48
+ # options:
49
+ # - text: Overview
50
+ # url: /engineering/core/
51
+ # - text: Core Technologies & Tools
52
+ # url: /engineering/core/ctt/
53
+ # - text: Kernel Validation
54
+ # url: /engineering/core/kernel-validation-and-testing/
55
+ # - text: Toolchain
56
+ # url: /engineering/core/toolchain/
57
+ # - text: Kernel
58
+ # url: /engineering/core/kernel/
59
+ # - text: Power Management
60
+ # url: /engineering/core/arm-power-management/
61
+ # - text: Power Management EAS
62
+ # options:
63
+ # - text: Flow
64
+ # url: /flow/
65
+ # - text: Post
66
+ # url: /post/
67
+ # - url: /documentation-page/
68
+ # text: Documentation Page
69
+ # - text: Power Management Farm
70
+ # url: /engineering/core/arm-power-management/pmwg-farm/
71
+ # - text: Security
72
+ # url: /engineering/core/security/
73
+ # - text: Devicetree Evolution
74
+ # url: /engineering/core/devicetree-evolution/
75
+ # - text: Datacenter & Cloud
76
+ # url: /engineering/datacenter-and-cloud/
77
+ # - text: Edge & Fog Computing
78
+ # url: /engineering/edge-and-fog-computing/
79
+ # - text: High Performance Computing
80
+ # url: /engineering/high-performance-computing/
81
+ # - text: IoT & Embedded
82
+ # url: /engineering/iot-and-embedded/
83
+ # - text: Multimedia
84
+ # url: /engineering/multimedia/
85
+ # title: Engineering
84
86
  - title: View on GitHub
85
87
  url: https://www.github.com/linaro-marketing/linaro-jekyll-theme
86
88
  external: true
@@ -26,7 +26,7 @@
26
26
  {% endif %}
27
27
  </p>
28
28
  {% if post_in_seconds > recent_posts %}
29
- <span class="new-post" title="Post added in the last week.">New</span>
29
+ <span class="new-post" title="{{site[site.active_lang].postAddedInLastWeek}}">{{site[site.active_lang].new}}</span>
30
30
  {% endif %}
31
31
  </a>
32
32
  </div>
@@ -69,7 +69,7 @@
69
69
  {% endif %}
70
70
  </p>
71
71
  <p class="card-text">
72
- <a href="{{post.url}}" class="btn btn-primary">Read</a>
72
+ <a href="{{post.url}}" class="btn btn-primary">{{site[site.active_lang].read}}</a>
73
73
  </p>
74
74
  </div>
75
75
  </div>
@@ -4,9 +4,9 @@
4
4
  <nav aria-label="Page navigation example">
5
5
  <ul class="pagination justify-content-center my-4 my-sm-4">
6
6
  {% if paginator.previous_page %}
7
- <li class="page-item"><a class="page-link" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
7
+ <li class="page-item"><a class="page-link" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; {{site[site.active_lang].prev}}</a></li>
8
8
  {% else %}
9
- <li class="page-item disabled"><a class="page-link" href="#">&laquo; Prev</a></li>
9
+ <li class="page-item disabled"><a class="page-link" href="#">&laquo; {{site[site.active_lang].prev}}</a></li>
10
10
  {% endif %}
11
11
  {% if paginator.page_trail %}
12
12
  {% for trail in paginator.page_trail %}
@@ -28,9 +28,9 @@
28
28
  {% endfor %}
29
29
  {% endif %}
30
30
  {% if paginator.next_page %}
31
- <li class="page-item"><a class="page-link" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next </a></li>
31
+ <li class="page-item"><a class="page-link" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{site[site.active_lang].next}} </a></li>
32
32
  {% else %}
33
- <li class="page-item disabled"><a class="page-link" href="#">Next &raquo;</a></li>
33
+ <li class="page-item disabled"><a class="page-link" href="#">{{site[site.active_lang].next}} &raquo;</a></li>
34
34
  {% endif %}
35
35
  </ul>
36
36
  </nav>
@@ -2,9 +2,9 @@
2
2
  <div class="col col-12 ">
3
3
  <div id="post_search" data-file-path="{{url.data}}">
4
4
  <input class="form-control form-control-lg" id="search-input" type="text"
5
- placeholder="Search {{site.categories[url.category].size}} posts..." />
5
+ placeholder="{{site[site.active_lang].search.search}} {{site.categories[url.category].size}} {{site[site.active_lang].posts | downcase }}..." />
6
6
  <a class="close_search" href="#">
7
- X <span class="sr-only">Clear Search</span>
7
+ X <span class="sr-only">{{site[site.active_lang].search.clearSearch}}</span>
8
8
  </a>
9
9
  <ul class="list-unstyled p-3" id="results-container"></ul>
10
10
  </div>
@@ -2,9 +2,9 @@
2
2
  <div class="col col-12 ">
3
3
  <div id="post_search" data-search-label="{{data.search_label}}">
4
4
  <input class="form-control form-control-lg" id="search-input" type="text"
5
- placeholder="Search {{site.categories[data.category].size}} posts..." />
5
+ placeholder="{{site[site.active_lang].search.search}} {{site.categories[data.category].size}} {{site[site.active_lang].posts | downcase }}..." />
6
6
  <a class="close_search" href="#">
7
- X <span class="sr-only">Clear Search</span>
7
+ X <span class="sr-only">{{site[site.active_lang].search.clearSearch}}</span>
8
8
  </a>
9
9
  <ul class="list-unstyled p-3" id="results-container"></ul>
10
10
  </div>
@@ -2,7 +2,7 @@
2
2
  Recent Posts Displayed here.
3
3
  {% endcomment %}
4
4
  <div class="col col-12 my-5 suggested_posts">
5
- <h3>Recent Posts</h3>
5
+ <h3>{{site[site.active_lang].recentPosts}}</h3>
6
6
  <ul class="list-unstyled">
7
7
  {% for post in site.posts limit: 3 %}
8
8
  {% assign timeframe = 604800 %}
@@ -30,7 +30,7 @@
30
30
  {% endif %}
31
31
  </p>
32
32
  {% if post_in_seconds > recent_posts %}
33
- <span class="new-post" title="Post added in the last week.">New</span>
33
+ <span class="new-post" title="Post added in the last week.">{{site[site.active_lang].new}}</span>
34
34
  {% endif %}
35
35
  </a>
36
36
  </div>
@@ -42,7 +42,7 @@
42
42
  Other Posts
43
43
  {% endcomment %}
44
44
  <div class="col col-12 my-5 suggested_posts">
45
- <h3>Other Posts</h3>
45
+ <h3>{{site[site.active_lang].otherPosts}}</h3>
46
46
  <ul class="list-unstyled">
47
47
  {% assign posts = site.posts | sample:5 %}
48
48
  {% for post in posts %}
@@ -4,4 +4,4 @@
4
4
  {% else %}
5
5
  {% assign words = content | number_of_words %}
6
6
  {% endif %}
7
- <span class="align-self-start my-1 reading-time bg-light text-dark badge" title="Estimated read time">{% if words < 360 %}1 min read{% else %}{{ words | divided_by:180 }} mins read{% endif %} <i class="fa fa-clock-o" aria-hidden="true"></i></span>
7
+ <span class="align-self-start my-1 reading-time bg-light text-dark badge" title="{{site[site.active_lang].estimatedReadTime}}">{% if words < 360 %}1 min read{% else %}{{ words | divided_by:180 }} mins read{% endif %} <i class="fa fa-clock-o" aria-hidden="true"></i></span>
@@ -19,7 +19,7 @@
19
19
  {% endfor %}
20
20
  {% endfor %}
21
21
  </div>
22
- <a type="button" class="btn btn-secondary d-none" id="view_all_tags_btn">View all tags</a>
22
+ <a type="button" class="btn btn-secondary d-none" id="view_all_tags_btn">{{site[site.active_lang].viewAllTags}}</a>
23
23
  </div>
24
24
  <div class="col col-12 tagged_posts" id="tagged_posts">
25
25
  {% for tag in site.tags %}
@@ -49,7 +49,7 @@
49
49
  <a href="{{ post.url }}">
50
50
  <h5 class="mt-0 mb-1">{{post.title}}</h5>
51
51
  <div class="post_meta" >
52
- Posted by <strong itemprop="name" rel="author">{{author_name}}</strong> on
52
+ {{site[site.active_lang].postedBy}} <strong itemprop="name" rel="author">{{author_name}}</strong> on
53
53
  <time datetime="{{post.date}}" >{{post.date | date: "%A, %B %-d, %Y"}}</time>
54
54
  </div>
55
55
  {% if post.description %}
@@ -11,7 +11,7 @@
11
11
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"
12
12
  class="breadcrumb-item">
13
13
  <a itemprop="item" href="/">
14
- <span itemprop="name">Home</span>
14
+ <span itemprop="name">{{site[site.active_lang].home}}</span>
15
15
  <meta itemprop="position" content="1" />
16
16
  </a>
17
17
  </li>
@@ -1,18 +1,17 @@
1
1
  <div class="col col-12 cookie_manager">
2
2
  <div class="row justify-content-lg-center">
3
3
  <div class="col col-12 col-sm-9">
4
- <h3>Necessary Cookies</h3>
4
+ <h3>{{site[site.active_lang].necessaryCookies}}</h3>
5
5
  <p class="lead">
6
- We cannot disable neccessary cookies as these are required to remember your preferences
7
- for non-essential cookies.
6
+ {{site[site.active_lang].necessaryCookiesText}}
8
7
  </p>
9
8
  <p>
10
- List of Necessary Cookies:
9
+ {{site[site.active_lang].necessaryCookiesTextList}}
11
10
  </p>
12
11
  <table class="table">
13
12
  <thead>
14
- <th>Cookie Name</th>
15
- <th>Usage</th>
13
+ <th>{{site[site.active_lang].cookieName}}</th>
14
+ <th>{{site[site.active_lang].usage}}</th>
16
15
  </thead>
17
16
  <tbody>
18
17
  {% for cookie in site.google_analytics.cookies.necessary %}
@@ -36,18 +35,18 @@
36
35
  </div>
37
36
  <div class="row justify-content-lg-center">
38
37
  <div class="col col-12 col-sm-9" order-sm-1">
39
- <h3>Analytics Cookies</h3>
38
+ <h3>{{site[site.active_lang].analyticsCookies}}</h3>
40
39
  <p class="lead" id="analytics_cookies_desc">
41
- <span class="disabled">Toggle this switch to enabled the collection of anonymous analytics data that helps us improve our site.</span>
42
- <span class="enabled">Toggle this switch to disable the collection of anonymous analytics data that helps us improve our site.</span>
40
+ <span class="disabled">{{site[site.active_lang].cookiesDisabledText}}</span>
41
+ <span class="enabled">{{site[site.active_lang].cookiesEnabledText}}</span>
43
42
  </p>
44
43
  <p>
45
- List of Analytics Cookies:
44
+ {{site[site.active_lang].analyticsCookiesTextList}}
46
45
  </p>
47
46
  <table class="table">
48
47
  <thead>
49
- <th>Cookie Name</th>
50
- <th>Usage</th>
48
+ <th>{{site[site.active_lang].cookieName}}</th>
49
+ <th>{{site[site.active_lang].usage}}</th>
51
50
  </thead>
52
51
  <tbody>
53
52
  {% for cookie in site.google_analytics.cookies.marketing %}
@@ -10,9 +10,9 @@
10
10
  {% endcapture %}
11
11
  {% capture edit-me-link %}{{github-docs}}{{page-path}}{% endcapture %}
12
12
  <div class="btn-group my-2 mt-1" role="group" aria-label="Basic example" id="github_controls">
13
- <a type="button" aria-label="GitHub Home" title="GitHub Home" class="btn btn-secondary" href="{{github-home}}" id="github_home"><span class="sr-only">Go to GitHub Repo home</span><i class="icon-github-circled center-block"></i></a>
14
- <a type="button" aria-label="Report an issue on GitHub for this page" title="Report an issue on GitHub for this page" class="btn btn-secondary" href="{{report-issue-link}}" id="submit_issue">Report an Issue</a>
15
- <a aria-label="Edit this page on GitHub" title="Edit this page on GitHub" href="{{edit-me-link | replace: " ", "" }}" type="button" class="btn btn-secondary" id="edit_on_github">Edit on GitHub</a>
13
+ <a aria-label="GitHub Home" title="GitHub Home" class="btn btn-secondary" href="{{github-home}}" id="github_home"><span class="sr-only">Go to GitHub Repo home</span><i class="icon-github-circled center-block"></i></a>
14
+ <a aria-label="Report an issue on GitHub for this page" title="Report an issue on GitHub for this page" class="btn btn-secondary" href="{{report-issue-link}}" id="submit_issue">{{site[site.active_lang].reportAnIssue}}</a>
15
+ <a aria-label="Edit this page on GitHub" title="Edit this page on GitHub" href="{{edit-me-link | replace: " ", "" }}" class="btn btn-secondary" id="edit_on_github">{{site[site.active_lang].editOnGithub}}</a>
16
16
  </div>
17
17
  {% else %}
18
18
  {% capture github-home %}{{site.edit-on-github.repo}}{% endcapture %}
@@ -22,12 +22,11 @@
22
22
  {% endcapture %}
23
23
  {% capture edit-me-link %}{{github-docs}}{{page-path}}{% endcapture %}
24
24
  <div class="btn-group my-2 mt-1" role="group" aria-label="Basic example" id="github_controls">
25
- <a type="button" aria-label="GitHub Home" title="GitHub Home" class="btn btn-secondary" href="{{github-home}}" id="github_home"> <span class="sr-only">Go to GitHub Repo home</span> <i
25
+ <a aria-label="GitHub Home" title="GitHub Home" class="btn btn-secondary" href="{{github-home}}" id="github_home"> <span class="sr-only">Go to GitHub Repo home</span> <i
26
26
  class="icon-github-circled center-block"></i></a>
27
- <a type="button" aria-label="Report an issue on GitHub for this page" title="Report an issue on GitHub for this page" class="btn btn-secondary" href="{{report-issue-link}}" id="submit_issue">Report an
28
- Issue</a>
27
+ <a aria-label="Report an issue on GitHub for this page" title="Report an issue on GitHub for this page" class="btn btn-secondary" href="{{report-issue-link}}" id="submit_issue">{{site[site.active_lang].reportAnIssue}}</a>
29
28
  <a aria-label="Edit this page on GitHub" title="Edit this page on GitHub" href="{{edit-me-link | replace: " ", "" }}" type="button" class="btn btn-secondary"
30
- id="edit_on_github">Edit on GitHub</a>
29
+ id="edit_on_github">{{site[site.active_lang].editOnGithub}}</a>
31
30
  </div>
32
31
  {% endif %}
33
32
  {% endif %}
@@ -1,9 +1,12 @@
1
1
  <head>
2
2
  {% include components/http2.html %}
3
3
  <meta charset="UTF-8">
4
+ {% I18n_Headers %}
4
5
  <title>
5
- {% if page.title %}
6
- {{page.title}} - {{site.title}}
6
+ {% if page.meta_title %}
7
+ {{page.meta_title}} | {{site.title}}
8
+ {% elsif page.title %}
9
+ {{page.title}} | {{site.title}}
7
10
  {% else %}
8
11
  {{site.title}}
9
12
  {% endif %}
@@ -13,13 +16,13 @@
13
16
  {% if page.description %}
14
17
  {% assign description = page.description %}
15
18
  {% else %}
16
- {% assign description = site.description %}
19
+ {% capture description %}{{site[site.active_lang].info.description}}{% endcapture %}
17
20
  {% endif %}
18
21
 
19
22
  {% if page.title %}
20
23
  {% assign title = page.title %}
21
24
  {% else %}
22
- {% assign title = site.title %}
25
+ {% capture title %}{{site[site.active_lang].info.title}}{% endcapture %}
23
26
  {% endif %}
24
27
 
25
28
  {% if page.image %}
@@ -26,9 +26,9 @@
26
26
  {{slide.title}}</h1>
27
27
  {% endif %}
28
28
  {% if slide.description %}
29
- <p class="lead {% if slide.desciption-class %} {{slide.description-class}}{% endif %}">
30
- {{slide.description}}
31
- </p>
29
+ <div class="lead {% if slide.desciption-class %} {{slide.description-class}}{% endif %}">
30
+ {{slide.description | markdownify}}
31
+ </div>
32
32
  {% endif %}
33
33
  {% if slide.buttons %}
34
34
  <p class="lead">
@@ -85,9 +85,9 @@
85
85
  <h1 {% if page.jumbotron.title-class %}class="{{page.jumbotron.title-class}}"{% endif %}>{{page.jumbotron.title}}</h1>
86
86
  {% endif %}
87
87
  {% if page.jumbotron.description %}
88
- <p class="lead">
89
- {{page.jumbotron.description }}
90
- </p>
88
+ <div class="lead">
89
+ {{page.jumbotron.description | markdownify}}
90
+ </div>
91
91
  {% endif %}
92
92
  {% if page.jumbotron.buttons %}
93
93
  <p class="lead">
@@ -22,13 +22,13 @@
22
22
  {{block.modal_content | markdownify}}
23
23
  </div>
24
24
  <div class="modal-footer">
25
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
25
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">{{site[site.active_lang].close}}</button>
26
26
  </div>
27
27
  </div>
28
28
  </div>
29
29
  </div>
30
30
  {% endif %}
31
- <div class="col col-12 col-sm-6 col-lg-{{block_width}} block_column">
31
+ <div class="col col-12 col-sm{% unless block_width == 'auto' %}-6 col-lg-{{block_width}}{% endunless %} block_column">
32
32
  <div class="card h-100 {% if block.background_image %}background_image text-white{% endif %} {% if block.style %}{{block.style}}{% endif %}">
33
33
  {% if block.image %}
34
34
  {% assign block_image = block.image %}
@@ -50,7 +50,7 @@
50
50
  {% if block.modal_content %}
51
51
  <!-- Button trigger modal -->
52
52
  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#blockModal-{{forloop.index}}-{{block.title | slugify}}">
53
- More Info
53
+ {{site[site.active_lang].moreInfo}}
54
54
  </button>
55
55
  {% else %}
56
56
  {% if block.buttons %}
@@ -7,13 +7,23 @@
7
7
  {% include components/github_edit.html pagePath=page.path pagePermalink=page.permalink %}
8
8
  </div>
9
9
  <div class="col col-12 text-white text-center">
10
- <span class="copyright">Copyright &copy; {{ 'now' | date: "%Y" }} {{site.data.footer.copyright_text}}</span>
10
+ <span class="copyright">{{site[site.active_lang].copyright}} &copy; {{ 'now' | date: "%Y" }} {{site.data.footer.copyright_text}}</span>
11
11
  {% for link in site.data.footer.company_links %}
12
12
  <span class="coloured-bp">&bull;</span>
13
13
  <a href="{{link.url}}">{{link.name}}</a>
14
14
  {% endfor %}
15
15
  {% include_cached social_media_icons.html %}
16
16
  </div>
17
+ {% if site.i18n_enabled %}
18
+ <div class="col col-12 text-white text-center">
19
+ {% for lang in site.languages %}
20
+ <a {% if lang == site.active_lang %}style="font-weight: bold;"{% endif %} {% static_href %}href="{% if lang == site.default_lang %}{{site.baseurl}}{{page.url}}{% else %}{{site.baseurl}}/{{ lang }}{{page.url}}{% endif %}"{% endstatic_href %} >{{ lang }}</a>
21
+ {% unless forloop.last %}
22
+ <span class="coloured-bp">&bull;</span>
23
+ {% endunless %}
24
+ {% endfor %}
25
+ </div>
26
+ {% endif %}
17
27
  {% if site.data.footer.footer_brand %}
18
28
  <div class="col col-12 text-white text-center m-t-10">
19
29
  <a href="{{site.data.footer.footer_brand.url}}/">
@@ -12,7 +12,7 @@
12
12
  {% if site.data.nav.brand.custom_include %}
13
13
  {% include {{site.data.nav.brand.custom_include}} %}
14
14
  {% else %}
15
- <a class="navbar-brand" href="/">
15
+ <a class="navbar-brand" href="{% if site.active_lang == site.default_lang %}/{% else %}/{{site.active_lang}}/{% endif %}">
16
16
  <img src="{{site.data.nav.brand.path}}" alt="{{site.data.nav.brand.alt}}" height="60" class="d-inline-block align-top">
17
17
  </a>
18
18
  {% endif %}
@@ -21,7 +21,7 @@
21
21
  <span class="icon-bar"></span>
22
22
  <span class="icon-bar"></span>
23
23
  <span class="icon-bar"></span>
24
- <span class="sr-only">Toggle navigation</span>
24
+ <span class="sr-only">{{site[site.active_lang].toggleNavigation}}</span>
25
25
  </button>
26
26
  <div class="collapse navbar-collapse" id="navbar-collapse">
27
27
  <ul class="navbar-nav ml-auto">
@@ -129,8 +129,8 @@
129
129
  </a>
130
130
  <div class="dropdown-menu" aria-labelledby="navbarDropdown">
131
131
  <form class="form-inline flex-nowrap" action="/search/" method="GET" target="_self" id="search_form">
132
- <input class="form-control border-0 flex-grow-1" name="q" type="search" placeholder="Search..." aria-label="Search">
133
- <button class="btn btn-outline-primary border-0" type="submit">Search</button>
132
+ <input class="form-control border-0 flex-grow-1" name="q" type="search" placeholder="{{site[site.active_lang].search.search}}..." aria-label="{{site[site.active_lang].search.search}}">
133
+ <button class="btn btn-outline-primary border-0" type="submit">{{site[site.active_lang].search.search}}</button>
134
134
  <input type="hidden" name="fields.label" value="{{ site.search_label }}">
135
135
  </form>
136
136
  </div>
@@ -3,12 +3,12 @@
3
3
  <nav class="navbar navbar-expand-{{nav_expand_point}} navbar-dark" id="universal_nav">
4
4
  <div class="container">
5
5
  <button class="navbar-toggler collapsed ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
6
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
6
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{site[site.active_lang].toggleNavigation}}">
7
7
  <!-- <span class="navbar-toggler-icon"></span> -->
8
8
  <span class="icon-bar"></span>
9
9
  <span class="icon-bar"></span>
10
10
  <span class="icon-bar"></span>
11
- <span class="sr-only">Toggle navigation</span>
11
+ <span class="sr-only">{{site[site.active_lang].toggleNavigation}}</span>
12
12
  </button>
13
13
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
14
14
  <ul class="navbar-nav ml-auto">
@@ -16,12 +16,12 @@
16
16
  {% if item.options %}
17
17
  <li class="nav-item dropdown {% if item.hamburger_toggle %}dropdown_hamburger{% endif %} {% for project-site in item.options %}{% if project-site.active %}active{% break %}{% endif %}{% endfor %}">
18
18
  {% if item.hamburger_toggle %}
19
- <button class="ml-auto mt-1 d-none d-{{nav_expand_point}}-block" type="button" role="button" data-toggle="dropdown"
19
+ <button class="ml-auto mt-1 d-none d-{{nav_expand_point}}-block" type="button" data-toggle="dropdown"
20
20
  aria-haspopup="true" aria-expanded="false" aria-label="Toggle {{item.title}} Dropdown">
21
21
  <span class="icon-bar"></span>
22
22
  <span class="icon-bar"></span>
23
23
  <span class="icon-bar"></span>
24
- <span class="sr-only d-none">Toggle navigation</span>
24
+ <span class="sr-only d-none">{{site[site.active_lang].toggleNavigation}}</span>
25
25
  </button>
26
26
  <a class="nav-link dropdown-toggle d-block d-{{nav_expand_point}}-none" target="_self" href="#" id="universalNavbarDropdown" aria-label="Toggle unviersal navigation" role="button" data-toggle="dropdown"
27
27
  aria-haspopup="true" aria-expanded="false">
@@ -55,6 +55,7 @@
55
55
  {% for item in site.data.universal_nav.items %}
56
56
  {% if item.icon %}
57
57
  <a target="_blank" class="nav-link" href="{{item.url}}">
58
+ <span class="sr-only">{{item.icon}}</span>
58
59
  <span class="{{item.icon}}"></span>
59
60
  </a>
60
61
  {% endif %}
data/_layouts/author.html CHANGED
@@ -49,7 +49,7 @@ css_package: blog
49
49
  <div class="col col-12 col-lg-10 py-4 blog-content">
50
50
  {% assign content_length = author.content | size %}
51
51
  {% if content_length > 1 %}
52
- <h3>About</h3>
52
+ <h3>{{site[site.active_lang].about}}</h3>
53
53
  {{author.content | markdownify }}
54
54
  <hr/>
55
55
  {% endif %}
data/_layouts/base.html CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  ---
3
3
  <!DOCTYPE html>
4
- <html lang="en">
4
+ <html lang="{{site.active_lang}}">
5
5
  {% include components/head.html %}
6
6
  <body>
7
7
  <div id="wrapper" class="main">
@@ -28,6 +28,7 @@ $jumbotron_height: 350px;
28
28
  @font-face {
29
29
  font-display: fallback;
30
30
  font-family: "Lato";
31
+ font-display: swap;
31
32
  src: url("/assets/fonts/lato/Lato-regular.eot"); /* IE9 Compat Modes */
32
33
  src: url("/assets/fonts/lato/Lato-regular.eot?#iefix")
33
34
  format("embedded-opentype"),
@@ -1,94 +1,99 @@
1
1
  /* Cookie Dialog */
2
2
  #gdpr-cookie-message {
3
- position: fixed;
4
- background-color: #eeeded;
5
- padding: 20px;
6
- border-radius: 5px;
7
- box-shadow: 0 15px 15px rgba(0,0,0,0.25);
8
- font-family: 'Lato';
9
- z-index: 999999;
10
- top: 0;
11
- left: 0;
12
- right: 0;
13
- bottom: unset;
14
- max-width: 100%;
15
- margin: 20px;
3
+ position: fixed;
4
+ background-color: #eeeded;
5
+ padding: 20px;
6
+ border-radius: 5px;
7
+ box-shadow: 0 15px 15px rgba(0, 0, 0, 0.25);
8
+ font-family: "Lato";
9
+ font-display: swap;
10
+ z-index: 999999;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: unset;
15
+ max-width: 100%;
16
+ margin: 20px;
16
17
 
17
- button#ihavecookiesBtn {
18
- margin-left: 0px !important;
18
+ button#ihavecookiesBtn {
19
+ margin-left: 0px !important;
20
+ }
21
+ h4 {
22
+ color: #333;
23
+ font-family: "Quicksand", sans-serif;
24
+ font-display: swap;
25
+ font-size: 18px;
26
+ font-weight: 500;
27
+ margin-bottom: 10px;
28
+ }
29
+ h5 {
30
+ color: #a2a2a2;
31
+ font-family: "Quicksand", sans-serif;
32
+ font-display: swap;
33
+ font-size: 15px;
34
+ font-weight: 500;
35
+ margin-bottom: 10px;
36
+ }
37
+ p,
38
+ ul {
39
+ color: #333;
40
+ font-size: 15px;
41
+ line-height: 1.5em;
42
+ }
43
+ p:last-child {
44
+ margin-bottom: 0;
45
+ text-align: right;
46
+ }
47
+ li {
48
+ width: 49%;
49
+ display: inline-block;
50
+ }
51
+ a {
52
+ color: $primary;
53
+ text-decoration: none;
54
+ font-size: 15px;
55
+ padding-bottom: 2px;
56
+ border-bottom: 1px dotted rgba(255, 255, 255, 0.75);
57
+ transition: all 0.3s ease-in;
58
+ &:hover {
59
+ color: #333;
60
+ border-bottom-color: $primary;
61
+ transition: all 0.3s ease-in;
19
62
  }
20
- h4 {
21
- color: #333;
22
- font-family: 'Quicksand', sans-serif;
23
- font-size: 18px;
24
- font-weight: 500;
25
- margin-bottom: 10px;
63
+ }
64
+ button,
65
+ button#ihavecookiesBtn {
66
+ border: none;
67
+ background: $primary;
68
+ color: white;
69
+ font-family: "Quicksand", sans-serif;
70
+ font-size: 15px;
71
+ padding: 7px;
72
+ border-radius: 3px;
73
+ margin-left: 15px;
74
+ margin-bottom: 5px;
75
+ cursor: pointer;
76
+ transition: all 0.3s ease-in;
77
+ }
78
+ button {
79
+ &:hover {
80
+ background: white;
81
+ color: $primary;
82
+ transition: all 0.3s ease-in;
26
83
  }
27
- h5 {
28
- color: #a2a2a2;
29
- font-family: 'Quicksand', sans-serif;
30
- font-size: 15px;
31
- font-weight: 500;
32
- margin-bottom: 10px;
84
+ &#gdpr-cookie-advanced {
85
+ background: white;
86
+ color: $primary;
33
87
  }
34
- p, ul {
35
- color: #333;
36
- font-size: 15px;
37
- line-height: 1.5em;
38
- }
39
- p:last-child {
40
- margin-bottom: 0;
41
- text-align: right;
42
- }
43
- li {
44
- width: 49%;
45
- display: inline-block;
46
- }
47
- a {
48
- color: $primary;
49
- text-decoration: none;
50
- font-size: 15px;
51
- padding-bottom: 2px;
52
- border-bottom: 1px dotted rgba(255,255,255,0.75);
53
- transition: all 0.3s ease-in;
54
- &:hover {
55
- color:#333;
56
- border-bottom-color: $primary;
57
- transition: all 0.3s ease-in;
58
- }
59
- }
60
- button, button#ihavecookiesBtn {
61
- border: none;
62
- background: $primary;
63
- color: white;
64
- font-family: 'Quicksand', sans-serif;
65
- font-size: 15px;
66
- padding: 7px;
67
- border-radius: 3px;
68
- margin-left: 15px;
69
- margin-bottom: 5px;
70
- cursor: pointer;
71
- transition: all 0.3s ease-in;
72
- }
73
- button {
74
- &:hover {
75
- background: white;
76
- color: $primary;
77
- transition: all 0.3s ease-in;
78
- }
79
- &#gdpr-cookie-advanced {
80
- background: white;
81
- color: $primary;
82
- }
83
- &:disabled {
84
- opacity: 0.3;
85
- }
86
- }
87
- input[type="checkbox"] {
88
- float: none;
89
- margin-top: 0;
90
- margin-right: 5px;
88
+ &:disabled {
89
+ opacity: 0.3;
91
90
  }
91
+ }
92
+ input[type="checkbox"] {
93
+ float: none;
94
+ margin-top: 0;
95
+ margin-right: 5px;
96
+ }
92
97
  }
93
98
 
94
99
  .df-switch {
@@ -131,12 +136,12 @@
131
136
  transition: opacity 0.25s;
132
137
  }
133
138
  .btn-toggle:before {
134
- content: 'off';
139
+ content: "off";
135
140
  left: -5rem;
136
141
  color: lightgrey;
137
142
  }
138
143
  .btn-toggle:after {
139
- content: 'on';
144
+ content: "on";
140
145
  right: -5rem;
141
146
  opacity: 0.5;
142
147
  color: $primary;
@@ -152,7 +157,7 @@
152
157
  box-shadow: inset 1px 1px 2px -1px black;
153
158
  }
154
159
  .btn-toggle.active > .inner-handle {
155
- background-color:$primary;
160
+ background-color: $primary;
156
161
  }
157
162
  .btn-toggle > .handle:before {
158
163
  content: "";
@@ -161,12 +166,20 @@
161
166
  width: 34px;
162
167
  top: 35%;
163
168
  left: 11px;
164
- background-image: radial-gradient(circle at center, $primary 5px, transparent 5px);
169
+ background-image: radial-gradient(
170
+ circle at center,
171
+ $primary 5px,
172
+ transparent 5px
173
+ );
165
174
  background-size: 10px 10px;
166
175
  background-repeat: no-repeat;
167
176
  }
168
177
  .btn-toggle.active > .handle:before {
169
- background-image: radial-gradient(circle at center, $primary 5px, transparent 5px);
178
+ background-image: radial-gradient(
179
+ circle at center,
180
+ $primary 5px,
181
+ transparent 5px
182
+ );
170
183
  }
171
184
  .btn-toggle > .handle {
172
185
  position: absolute;
@@ -196,5 +209,6 @@
196
209
  .btn-toggle.active {
197
210
  background-color: $primary;
198
211
  }
199
- #gdpr-cookie-message button, #gdpr-cookie-message button#ihavecookiesBtn {
212
+ #gdpr-cookie-message button,
213
+ #gdpr-cookie-message button#ihavecookiesBtn {
200
214
  }
@@ -1,5 +1,6 @@
1
1
  @font-face {
2
2
  font-family: "fontello";
3
+ font-display: swap;
3
4
  src: url("/assets/fonts/fontello/fontello.eot");
4
5
  src: url("/assets/fonts/fontello/fontello.eot") format("embedded-opentype"),
5
6
  url("/assets/fonts/fontello/fontello.woff2") format("woff2"),
@@ -12,6 +13,7 @@
12
13
  [class^="icon-"]:before,
13
14
  [class*=" icon-"]:before {
14
15
  font-family: "fontello";
16
+ font-display: swap;
15
17
  font-style: normal;
16
18
  font-weight: normal;
17
19
  speak: none;
@@ -1,61 +1,66 @@
1
1
  #wrapper {
2
- footer {
3
- i {
4
- color: white;
5
- &:hover {
6
- color: $primary;
7
- }
2
+ footer {
3
+ #github_controls {
4
+ a {
5
+ -webkit-appearance: none;
6
+ }
7
+ }
8
+ i {
9
+ color: white;
10
+ &:hover {
11
+ color: $primary;
12
+ }
13
+ }
14
+ a {
15
+ color: white;
16
+ &:hover {
17
+ color: $primary;
18
+ }
19
+ }
20
+ .main {
21
+ background-color: $footer_bg_color;
22
+ margin: 30px 0;
23
+ .footer-column {
24
+ margin: 30px 0;
25
+ h3 {
26
+ color: #ffffff;
27
+ font-weight: 700;
28
+ font-size: 26px;
29
+ border-left: 5px solid $primary;
30
+ padding-left: 15px;
8
31
  }
9
- a {
10
- color: white;
32
+ ul.list-group {
33
+ li {
34
+ background-color: transparent;
35
+ border: 0;
36
+ padding-left: 0px;
37
+ padding-right: 0px;
38
+ transition: all 400ms ease;
11
39
  &:hover {
12
- color: $primary;
13
- }
14
- }
15
- .main {
16
- background-color: $footer_bg_color;
17
- margin: 30px 0;
18
- .footer-column {
19
- margin: 30px 0;
20
- h3 {
21
- color: #ffffff;
22
- font-weight: 700;
23
- font-size: 26px;
24
- border-left: 5px solid $primary;
25
- padding-left: 15px;
26
- }
27
- ul.list-group {
28
- li {
29
- background-color: transparent;
30
- border: 0;
31
- padding-left: 0px;
32
- padding-right: 0px;
33
- transition: all 400ms ease;
34
- &:hover {
35
- padding-left: 4px;
36
- }
37
- a {
38
- color: #fff;
39
- font-size: 24px;
40
- font-weight: normal;
41
- &:hover {
42
- color: $primary;
43
- text-decoration: none;
44
- transition: color .5s ease;
45
- -moz-transition: color .5s ease;
46
- -webkit-transition: color .5s ease;
47
- }
48
- }
49
- }
50
- }
40
+ padding-left: 4px;
51
41
  }
52
- }
53
- .strip {
54
- background-color: $footer_strip_bg_color;
55
- .footer-logo {
56
- height: 40px;
57
- margin: 10px 0;
42
+ a {
43
+ color: #fff;
44
+ font-size: 24px;
45
+ font-weight: normal;
46
+ &:hover {
47
+ color: $primary;
48
+ text-decoration: none;
49
+ transition: color 0.5s ease;
50
+ -moz-transition: color 0.5s ease;
51
+ -webkit-transition: color 0.5s ease;
52
+ }
58
53
  }
54
+ }
59
55
  }
56
+ }
57
+ }
58
+ .strip {
59
+ background-color: $footer_strip_bg_color;
60
+ .footer-logo {
61
+ height: 40px;
62
+ margin: 10px 0;
63
+ }
60
64
  }
65
+ }
61
66
  }
@@ -48,7 +48,8 @@
48
48
  }
49
49
  blockquote {
50
50
  width: 100%;
51
- font-family: Open Sans;
51
+ font-family: "Lato";
52
+ font-display: swap;
52
53
  font-style: italic;
53
54
  color: #555555;
54
55
  padding: 1.2em 30px 1.2em 75px;
@@ -57,7 +58,8 @@
57
58
  position: relative;
58
59
  background: #ededed;
59
60
  &::before {
60
- font-family: Arial;
61
+ font-family: "Lato";
62
+ font-display: swap;
61
63
  content: "\201C";
62
64
  color: $primary;
63
65
  font-size: 6em;
@@ -201,15 +201,13 @@ $(document).ready(function () {
201
201
  }
202
202
  }
203
203
  navbar();
204
- $(window).scroll(function () {
205
- navbar();
206
- });
207
204
  // Sticky tab bar setup
205
+ var stickyNav;
208
206
  if ($("#tabbed-nav-bar").length > 0) {
209
207
  var text = $("#tabbed-nav-bar ul li a.active").text();
210
208
  $("#sub-navigation-header").text(text);
211
209
  var stickyTabBarOffset = $("#tabbed-nav-bar").offset().top;
212
- const stickyNav = () => {
210
+ stickyNav = () => {
213
211
  var scroll = $(window).scrollTop();
214
212
  if (scroll > stickyTabBarOffset) {
215
213
  $("#tabbed-nav-bar").addClass("fixed-top");
@@ -217,10 +215,19 @@ $(document).ready(function () {
217
215
  $("#tabbed-nav-bar").removeClass("fixed-top");
218
216
  }
219
217
  };
220
- $(window).scroll(function () {
221
- stickyNav();
222
- });
223
218
  }
219
+ // Passive window scroll listener.
220
+ window.addEventListener(
221
+ "scroll",
222
+ () => {
223
+ if ($("#tabbed-nav-bar").length > 0) {
224
+ stickyNav();
225
+ }
226
+ navbar();
227
+ },
228
+ { passive: true }
229
+ );
230
+
224
231
  // Multi-level dropdowns
225
232
  $(".navbar .dropdown-menu > li:not(.dropdown-item)").on(
226
233
  "click",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linaro-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.13.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: jekyll-polyglot
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '='
116
+ - !ruby/object:Gem::Version
117
+ version: 1.5.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '='
123
+ - !ruby/object:Gem::Version
124
+ version: 1.5.0
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: japr
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -148,14 +162,14 @@ dependencies:
148
162
  requirements:
149
163
  - - '='
150
164
  - !ruby/object:Gem::Version
151
- version: 1.17.2
165
+ version: 1.17.3
152
166
  type: :development
153
167
  prerelease: false
154
168
  version_requirements: !ruby/object:Gem::Requirement
155
169
  requirements:
156
170
  - - '='
157
171
  - !ruby/object:Gem::Version
158
- version: 1.17.2
172
+ version: 1.17.3
159
173
  description:
160
174
  email:
161
175
  - kyle.kirkby@linaro.org
@@ -167,6 +181,10 @@ files:
167
181
  - README.md
168
182
  - _config.yml
169
183
  - _data/footer.yml
184
+ - _data/ja/footer.yml
185
+ - _data/ja/nav.yml
186
+ - _data/ja/sticky_tab_bar.yml
187
+ - _data/ja/universal_nav.yml
170
188
  - _data/nav.yml
171
189
  - _data/picture.yml
172
190
  - _data/sticky_tab_bar.yml