jekyll-theme-open-project 1.0.9 → 1.0.10

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: c863ca2729f40038a8b38bbbde79a96795183e6208bf1cc681bd46b56cd00813
4
- data.tar.gz: 6c4f2840d3ee519b1ae1979e531bf4136e7288c723b464b4646639f199ff45bf
3
+ metadata.gz: b46f1b5e5d16924ef5a11576921110fa587bb972f6eb9bd152d5758fa46ee523
4
+ data.tar.gz: da45509538675783a14fd430e4bf67341539b9736192926a80234fc16ca01609
5
5
  SHA512:
6
- metadata.gz: 27f8ebb73ce18ecbd6eb925df86185a043f776c92712afc84b8c200954fadb24512172d3b6ba16f11f5cc2da00d47683e45b45689741b1ec325f0fe704cc1068
7
- data.tar.gz: ba77fc32931c6db55a39b9717fab805ed84f28aad491e41c63e1b1ef5f654ac215abe243a50255b7ea638af5a26f697e9da4c57dbcfe346da80ad481ff018721
6
+ metadata.gz: 9c3d8eded387f7056a2321743fa4666eb85e0359e725e8821db26f703f25c8f6a9a2b974d2e8bec9fbbe636326e1f6123aca3684a636af08cc83d79b6a23b834
7
+ data.tar.gz: bfd4e265b2565a97f2e44ec65242348facb7f7eb92d0f0811822fa01a99a9356c21a9e1a9b1636569482a775010058b627c3e2e2380738af36a36650be5eb382
data/README.md CHANGED
@@ -384,6 +384,15 @@ description: A sentence.
384
384
  # but used for HTML metadata if jekyll-seo-tag is enabled
385
385
 
386
386
  tags: [Python, Ruby]
387
+
388
+ feature_with_priority: 1
389
+ # With this key, software or spec will be featured on home
390
+ # page of project site. Lower number means higher priority
391
+ # (as in, priority no. 1 means topmost item on home page,
392
+ # as long as there aren’t others with the same value).
393
+ # If no documents in the collection have this key,
394
+ # items on home will be ordered according to Jekyll’s
395
+ # default behavior.
387
396
  ```
388
397
 
389
398
  ### Software product
@@ -1,9 +1,20 @@
1
1
  {% assign software = site.software | where_exp: "item", "item.repo_url != nil" %}
2
- {% assign specs = site.specs | where_exp: "item", "item.source_url != nil" %}
3
- {% assign posts = site.posts %}
4
-
2
+ {% assign featured_software = software | where_exp: "item", "item.feature_with_priority != nil" | sort: 'feature_with_priority' %}
5
3
  {% assign num_software = software | size %}
4
+ {% assign num_featured_software = featured_software | size %}
5
+ {% if num_featured_software > 0 %}
6
+ {% assign software = featured_software %}
7
+ {% endif %}
8
+
9
+ {% assign specs = site.specs | where_exp: "item", "item.source_url != nil" %}
10
+ {% assign featured_specs = specs | where_exp: "item", "item.feature_with_priority != nil" | sort: 'feature_with_priority' %}
6
11
  {% assign num_specs = specs | size %}
12
+ {% assign num_featured_specs = featured_specs | size %}
13
+ {% if num_featured_specs > 0 %}
14
+ [% assign specs = featured_specs %}
15
+ {% endif %}
16
+
17
+ {% assign posts = site.posts %}
7
18
  {% assign num_posts = site.posts | size %}
8
19
 
9
20
  {% assign num_top_items = num_software + num_posts %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.