jekyll-theme-open-project 1.0.0.rc5 → 1.0.2

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
  SHA1:
3
- metadata.gz: 2b18fc139b6d972aed9f9ac6dc99dd3a5cd242ae
4
- data.tar.gz: a358269bb2e7fcae23622aa341b72d46774cedc5
3
+ metadata.gz: 2b8384c80612cb65dc4f50d90e4989c796f885c1
4
+ data.tar.gz: 39990a7528f20c5dfbafdfd83615295f9f61518f
5
5
  SHA512:
6
- metadata.gz: 875e19d4ded6bad2d078aea59f3be55de5f504065d954587dc2ed4f024001139a4590d6655dbe7f06e655de0863cf64ced6e854f0d9aee8230476b0a353cde53
7
- data.tar.gz: f203885fd9eb241942342c92ac3f1574ac0c227633fe843778bb033ab002008f57892cc905ef58966c489b8c044dc6d0849d19748fca8ac6ad429b63f4a88119
6
+ metadata.gz: ebb124659e6d4ed423170458e57f7030e6036137fcbdadfab49d27669e2147307c0613024c977318707a0992e4952b4464b9bb311763a62143d80e055cf16c21
7
+ data.tar.gz: e0296bb2340ac8fdf8926ae47cb5f145b42a83ca133819096f65dca8d6370c5bca5ee52e26d4764900afa82f1b83efb579175e44aaa0bd401f3e4d76ddab9fb0
data/README.md CHANGED
@@ -63,7 +63,6 @@ Also in the `Gemfile`, add two important plugins to the `:jekyll_plugins` group.
63
63
  group :jekyll_plugins do
64
64
  gem "jekyll-seo-tag"
65
65
  gem "jekyll-data"
66
- gem "jekyll-data"
67
66
  gem "jekyll-theme-open-project-helpers"
68
67
  # ...other plugins, if you use any
69
68
  end
@@ -6,17 +6,21 @@
6
6
  {% assign num_specs = specs | size %}
7
7
  {% assign num_posts = site.posts | size %}
8
8
 
9
+ {% assign num_top_items = num_software + num_posts %}
10
+
9
11
  <div class="underlay top-background" role="presentation">
10
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
11
- <polygon fill="white" points="0,0 100,0 100,60 0,100"/>
12
- </svg>
12
+ {% if num_top_items > 1 %}
13
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
14
+ <polygon fill="white" points="0,0 100,0 100,60 0,100"/>
15
+ </svg>
16
+ {% endif %}
13
17
 
14
18
  {% if num_software > 0 %}
15
19
  <section class="software">
16
20
  <h2 class="title">Open Source Software</h2>
17
21
 
18
22
  <div class="items">
19
- {% for item in software %}
23
+ {% for item in software | limit: site.num_featured_software %}
20
24
  <a class="item" href="{{ item.url }}" role="article">
21
25
  <div class="logo-container" role="presentation">
22
26
  {% include software-symbol.html item_id=item.id %}
@@ -50,7 +54,7 @@
50
54
  <h2 class="title">From the Blog</h2>
51
55
 
52
56
  <div class="items" role="presentation">
53
- {% for item in posts %}
57
+ {% for item in posts | limit: site.num_featured_posts %}
54
58
  {% include post-card.html post=item %}
55
59
  {% endfor %}
56
60
  </div>
@@ -63,7 +67,7 @@
63
67
  <h2 class="title">Open Specifications</h2>
64
68
 
65
69
  <div class="items">
66
- {% for item in specs %}
70
+ {% for item in specs | limit: site.num_featured_specs %}
67
71
  <a class="item" href="{{ item.url }}" role="article">
68
72
  <header>
69
73
  <h3 class="title">{{ item.title }}</h3>
@@ -110,4 +110,3 @@
110
110
 
111
111
  </article>
112
112
  </section>
113
-
@@ -1,8 +1,6 @@
1
1
  {% assign symbol_path = include.item_id | split: "/" | slice: 2, 1 | join: "/" | append: "/assets/symbol.svg" %}
2
- {% if include.include_inline %}
3
- {% assign relative_symbol_path = "/_software/" | append: symbol_path %}
4
- <div class="logo">{% include {{ relative_symbol_path }} %}</div>
5
- {% else %}
6
- {% assign relative_symbol_path = "/software/" | append: symbol_path %}
7
- <div class="logo"><img src="{{ relative_symbol_path }}"></div>
8
- {% endif %}
2
+ {% assign relative_symbol_path = "/software/" | append: symbol_path %}
3
+
4
+ <div class="logo">
5
+ <img src="{{ relative_symbol_path }}">
6
+ </div>
@@ -5,7 +5,7 @@ layout: default
5
5
  <section class="items">
6
6
  {% include assets/symbol.svg %}
7
7
 
8
- {% for item in page.posts_combined %}
8
+ {% for item in site.posts_combined %}
9
9
  {% include post-card.html post=item %}
10
10
  {% endfor %}
11
11
  </section>
@@ -20,16 +20,34 @@
20
20
  <nav>
21
21
  {% include nav-page-link.html url="/" title="Home" %}
22
22
  {% assign contact_link = "mailto:" | append: site.contact_email %}
23
- {% if num_projects > 0 %}
23
+
24
+ {% if site.is_hub %}
24
25
  {% include nav-page-link.html url="/projects/" title="Open Projects" %}
25
- {% include nav-page-link.html url="/software/" title="Open Source Software" active_for_nested=true %}
26
- {% include nav-page-link.html url="/specs/" title="Open Specifications" active_for_nested=true %}
27
- {% include nav-page-link.html url="/blog/" title="Blog" active_for_nested=true %}
26
+
27
+ {% if site.num_all_software > 0 %}
28
+ {% include nav-page-link.html url="/software/" title="Open Source Software" active_for_nested=true %}
29
+ {% endif %}
30
+ {% if site.num_all_specs > 0 %}
31
+ {% include nav-page-link.html url="/specs/" title="Open Specifications" active_for_nested=true %}
32
+ {% endif %}
33
+ {% if site.num_posts_combined > 0 %}
34
+ {% include nav-page-link.html url="/blog/" title="Blog" active_for_nested=true %}
35
+ {% endif %}
36
+
28
37
  {% else %}
29
- {% include nav-page-link.html url="/software/" title="Open Source Software" active_for_nested=true %}
30
- {% include nav-page-link.html url="/specs/" title="Open Specifications" active_for_nested=true %}
38
+ {% if site.num_all_software > 0 %}
39
+ {% include nav-page-link.html url="/software/" title="Open Source Software" active_for_nested=true %}
40
+ {% endif %}
41
+ {% if site.num_all_specs > 0 %}
42
+ {% include nav-page-link.html url="/specs/" title="Open Specifications" active_for_nested=true %}
43
+ {% endif %}
44
+
31
45
  {% include project-nav.html %}
32
- {% include nav-page-link.html url="/blog/" title="Blog" active_for_nested=true %}
46
+
47
+ {% if site.num_posts_combined > 0 %}
48
+ {% include nav-page-link.html url="/blog/" title="Blog" active_for_nested=true %}
49
+ {% endif %}
50
+
33
51
  {% include nav-page-link.html url=contact_link title="Contact" %}
34
52
  {% endif %}
35
53
  </nav>
@@ -3,7 +3,7 @@ layout: default
3
3
  ---
4
4
 
5
5
  {% if site.is_hub %}
6
- {% include index-page-item-filter.html url_tag_prefix="/software/" items=page.items tag=page.tag %}
6
+ {% include index-page-item-filter.html url_tag_prefix="/software/" items=site.all_software tag=page.tag %}
7
7
  {% endif %}
8
8
 
9
9
  <section class="items">
@@ -11,7 +11,7 @@ layout: default
11
11
  {% include assets/symbol.svg %}
12
12
  {% endif %}
13
13
 
14
- {% for product in page.items %}
14
+ {% for product in site.all_software %}
15
15
  {% if site.is_hub %}
16
16
  {% assign project_name = product.url | split: "/" | slice: 2 | first %}
17
17
  {% assign project_index_path = "_projects/" | append: project_name | append: "/index.md" %}
@@ -3,7 +3,7 @@ layout: default
3
3
  ---
4
4
 
5
5
  {% if site.is_hub %}
6
- {% include index-page-item-filter.html url_tag_prefix="/specs/" items=page.items tag=page.tag %}
6
+ {% include index-page-item-filter.html url_tag_prefix="/specs/" items=site.all_specs tag=page.tag %}
7
7
  {% endif %}
8
8
 
9
9
  <section class="items">
@@ -11,7 +11,7 @@ layout: default
11
11
  {% include assets/symbol.svg %}
12
12
  {% endif %}
13
13
 
14
- {% for spec in page.items %}
14
+ {% for spec in site.all_specs %}
15
15
  {% if site.is_hub %}
16
16
  {% assign project_name = spec.url | split: "/" | slice: 2 | first %}
17
17
  {% assign project_index_path = "_projects/" | append: project_name | append: "/index.md" %}
@@ -63,6 +63,20 @@ main {
63
63
  }
64
64
  }
65
65
 
66
+ > .underlay, > section {
67
+ &:last-child {
68
+ padding-bottom: 50px;
69
+ @media screen and (min-width: $bigscreen-breakpoint) {
70
+ padding-bottom: 100px;
71
+ }
72
+ }
73
+ &:only-child {
74
+ @media screen and (min-width: $bigscreen-breakpoint) {
75
+ padding-bottom: 130px;
76
+ }
77
+ }
78
+ }
79
+
66
80
  > .underlay > .featured-posts {
67
81
  @extend .main-section;
68
82
 
@@ -95,6 +109,14 @@ main {
95
109
  }
96
110
  }
97
111
 
112
+ body.layout-spec-index > &,
113
+ body.layout-software-index > &,
114
+ body.layout-product > &,
115
+ body.layout-spec > &,
116
+ body.layout-project-index > & {
117
+ padding-bottom: 100px;
118
+ }
119
+
98
120
  body.layout-spec-index > &,
99
121
  body.layout-software-index > & {
100
122
  > .item-filter {
@@ -565,10 +587,15 @@ body.project {
565
587
 
566
588
  border-bottom: 2px solid $primary-dark-color;
567
589
  padding-top: 70px;
568
- padding-bottom: 10px;
590
+ padding-bottom: 20px;
569
591
 
570
592
  > .logo-container {
571
593
  margin-right: 22px;
594
+
595
+ > :only-child {
596
+ width: 58px;
597
+ height: 58px;
598
+ }
572
599
  }
573
600
 
574
601
  .text {
@@ -10,7 +10,7 @@ body {
10
10
 
11
11
  a {
12
12
  &:link, &:hover, &:visited {
13
- color: $primary-color;
13
+ color: $primary-dark-color;
14
14
  text-decoration: none;
15
15
  }
16
16
  }
@@ -326,10 +326,6 @@ body {
326
326
  > main {
327
327
  flex: 1;
328
328
  overflow: hidden;
329
- padding-bottom: 50px;
330
- @media screen and (min-width: $bigscreen-breakpoint) {
331
- padding-bottom: 100px;
332
- }
333
329
  }
334
330
  }
335
331
  @media screen and (min-width: $bigscreen-breakpoint) {
@@ -79,7 +79,6 @@ body > .underlay > footer {
79
79
  padding-bottom: 30px;
80
80
  }
81
81
 
82
- text-align: center;
83
82
  color: white;
84
83
 
85
84
  > .text {
@@ -154,6 +153,20 @@ body > .underlay > footer {
154
153
  }
155
154
  }
156
155
 
156
+ body.project > & {
157
+ > .hero {
158
+ text-align: center;
159
+
160
+ > .text {
161
+ > .desc {
162
+ @media screen and (min-width: $bigscreen-breakpoint) {
163
+ margin: 0 7em;
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+
157
170
  body.hub.layout-home > & {
158
171
  > .hero {
159
172
  text-align: left;
@@ -231,6 +244,7 @@ body > .underlay > footer {
231
244
  display: flex;
232
245
  flex-flow: row nowrap;
233
246
  justify-content: space-between;
247
+
234
248
  .copyright {
235
249
  margin-right: 40px;
236
250
  white-space: nowrap;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc5
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-01 00:00:00.000000000 Z
11
+ date: 2018-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.0.rc4
75
+ version: 1.0.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.0.0.rc4
82
+ version: 1.0.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -214,9 +214,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  requirements:
217
- - - ">"
217
+ - - ">="
218
218
  - !ruby/object:Gem::Version
219
- version: 1.3.1
219
+ version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
222
  rubygems_version: 2.6.14.1