linaro-jekyll-theme 4.3.3 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6e759dcbe92e6d170436b9d110d499a93facfda09cd51433bf762f525fa5bb5
4
- data.tar.gz: 55dfe2116af0ecd2bb1650f33a5304afbefea89fa1efe84a4560aea84e7092bc
3
+ metadata.gz: b18f6bead92e40f953c0b493b8fb72c5535cf1cfdee5a33b2a43e33466b9d860
4
+ data.tar.gz: 99a3a4466a2e7fc3c580996310a99dd2633276011348eb45929b0f575ec3a6a5
5
5
  SHA512:
6
- metadata.gz: 65f7e46494e9e44e86a2e22b0804001ef91f314a362e655b9bef57a20e7bea51c998ab4dd99a21e27d3aa1ba9a7ae29f218502e18e9ab9bd28bd5fd435522ad1
7
- data.tar.gz: '0597d2e7870954b975522b56f40750a6115aea216167ae03752c8608c3424de65dc5644ae5bb8f3c8bcdee5ca532273637ef6ea4ce8f905ef82c2ab5d4670124'
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 %}
@@ -11,8 +11,8 @@
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
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">Report an Issue</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">Edit on GitHub</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 %}
@@ -24,10 +24,9 @@
24
24
  <div class="btn-group my-2 mt-1" role="group" aria-label="Basic example" id="github_controls">
25
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 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,6 +1,7 @@
1
1
  <head>
2
2
  {% include components/http2.html %}
3
3
  <meta charset="UTF-8">
4
+ {% I18n_Headers %}
4
5
  <title>
5
6
  {% if page.meta_title %}
6
7
  {{page.meta_title}} | {{site.title}}
@@ -15,13 +16,13 @@
15
16
  {% if page.description %}
16
17
  {% assign description = page.description %}
17
18
  {% else %}
18
- {% assign description = site.description %}
19
+ {% capture description %}{{site[site.active_lang].info.description}}{% endcapture %}
19
20
  {% endif %}
20
21
 
21
22
  {% if page.title %}
22
23
  {% assign title = page.title %}
23
24
  {% else %}
24
- {% assign title = site.title %}
25
+ {% capture title %}{{site[site.active_lang].info.title}}{% endcapture %}
25
26
  {% endif %}
26
27
 
27
28
  {% if page.image %}
@@ -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">
@@ -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 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">
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">
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.3
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: 2021-03-30 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