jekyll-theme-portfolio 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/_layouts/portfolio.html +5 -4
- data/_layouts/portfolio_2column.html +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daaa8e12582f9415e0acc6d501791c1ad97aa211cf7fe13851f4b495621edcbf
|
4
|
+
data.tar.gz: 4fc031474fc3606f63c68e7ed98ff45a032534068ec522119c30bb25581dc335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40b2233f1e10c4b115a3ace3e920dea37c8e429fd6d230e72d7068a7cf77ccb7465479a0a1104119530f516667353b9b4d910676370409df462bb283614ed21b
|
7
|
+
data.tar.gz: eb5a93c7b3ae4254ac135d8bf60eb6becdf27b25df97739516dab2c4a87c77aac598e6faf6eadb6922ec50c9cc4818a71462df609ea79e6e50b291f98f888f22
|
data/README.md
CHANGED
@@ -65,7 +65,23 @@ layout: portfolio
|
|
65
65
|
|
66
66
|
This tells Jekyll to use the `portfolio` layout for the page, which lets the theme take care of the rest.
|
67
67
|
|
68
|
-
If you
|
68
|
+
If you prefer two columns instead of three you can use the two column layout instead-
|
69
|
+
|
70
|
+
```
|
71
|
+
---
|
72
|
+
layout: portfolio_2column
|
73
|
+
---
|
74
|
+
```
|
75
|
+
|
76
|
+
If you leave any content in the file it will show up above the portfolio listings.
|
77
|
+
|
78
|
+
```
|
79
|
+
---
|
80
|
+
layout: portfolio
|
81
|
+
---
|
82
|
+
<h2> Welcome!</h2>
|
83
|
+
```
|
84
|
+
|
69
85
|
|
70
86
|
### Add your Projects
|
71
87
|
|
data/_layouts/portfolio.html
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
|
+
columns: 3
|
3
4
|
---
|
4
5
|
{{ content }}
|
5
6
|
{% for category in site.data.projects %}
|
@@ -9,13 +10,13 @@ layout: page
|
|
9
10
|
{% if category.description %}
|
10
11
|
<div class="alert alert-light">{{ category.description | safe | newline_to_br }}</div>
|
11
12
|
{% endif %}
|
12
|
-
{%- assign columns = 3 -%}
|
13
|
+
{%- assign layout.columns = 3 -%}
|
13
14
|
{% for project in category.projects %}
|
14
|
-
{% assign loop = forloop.index | minus: 1 | modulo: columns %}
|
15
|
+
{% assign loop = forloop.index | minus: 1 | modulo: layout.columns %}
|
15
16
|
{% if loop == 0 %}
|
16
17
|
<div class="row">
|
17
18
|
{% endif %}
|
18
|
-
<div class="col-12 col-sm-6 col-xl-{{ 12 | divided_by: columns | int }} my-3">
|
19
|
+
<div class="col-12 col-sm-6 col-xl-{{ 12 | divided_by: layout.columns | int }} my-3">
|
19
20
|
<div class="card">
|
20
21
|
<div class="text-center">
|
21
22
|
{% if project.image %}
|
@@ -56,7 +57,7 @@ layout: page
|
|
56
57
|
</ul>
|
57
58
|
</div>
|
58
59
|
</div>
|
59
|
-
{%- assign last_loop = columns | minus: 1 -%}
|
60
|
+
{%- assign last_loop = layout.columns | minus: 1 -%}
|
60
61
|
{% if loop == last_loop or forloop.last == true %}
|
61
62
|
</div>
|
62
63
|
{%- endif -%}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-portfolio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Hafner
|
@@ -88,6 +88,7 @@ files:
|
|
88
88
|
- _layouts/home.html
|
89
89
|
- _layouts/page.html
|
90
90
|
- _layouts/portfolio.html
|
91
|
+
- _layouts/portfolio_2column.html
|
91
92
|
- _layouts/post.html
|
92
93
|
- _sass/_bootstrap_customization.scss
|
93
94
|
- _sass/_syntax-highlighting.scss
|