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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d90fbc37f7b7e47928205d5fb98fd3876cfc0102a9e6422501102c393778eae1
4
- data.tar.gz: 5f481d91740953c040858a17e0883cabf26e036085866a58ecefc3df7c8b812d
3
+ metadata.gz: daaa8e12582f9415e0acc6d501791c1ad97aa211cf7fe13851f4b495621edcbf
4
+ data.tar.gz: 4fc031474fc3606f63c68e7ed98ff45a032534068ec522119c30bb25581dc335
5
5
  SHA512:
6
- metadata.gz: c28d10df6961fea9bc017930460d27b19c6a9aa347e4351a6d9fb357849f64a6a574a44eea1a2e75c8a4a1c9f3f19ad1233ddf4bd4a96108131f85d8d3f36f93
7
- data.tar.gz: 0f148fc4637e41abe393d546fbe2790324ae5516c892492464c47889da0e7e151ed4681944f22aa5f64e2e5bc35f8d082e85b225f2e7d38aaa038efb8c5abcb7
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 do leave any content in the file it will show up above the portfolio listings.
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
 
@@ -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 -%}
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: portfolio
3
+ columns: 2
4
+ ---
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.2.0
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