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 +4 -4
- data/README.md +9 -0
- data/_includes/home-project.html +14 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b46f1b5e5d16924ef5a11576921110fa587bb972f6eb9bd152d5758fa46ee523
|
|
4
|
+
data.tar.gz: da45509538675783a14fd430e4bf67341539b9736192926a80234fc16ca01609
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/_includes/home-project.html
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
{% assign software = site.software | where_exp: "item", "item.repo_url != nil" %}
|
|
2
|
-
{% assign
|
|
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 %}
|