fortyone-jekyll-theme 1.2.1 → 1.2.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: c97bf4a41e87c0d103254a625b1e7bb9309abc29
4
- data.tar.gz: 213b4ac07ad4a1b604b5ebfd68d6afd33abd9941
3
+ metadata.gz: 6883b01031366a44e3c97eab78d096cc17d2256e
4
+ data.tar.gz: f213f9605333b9f76a4172b4e50138ffcc0c14c1
5
5
  SHA512:
6
- metadata.gz: c640caa7bf03f8623feed9173d995636555c0fa986052d811ab31b5189ce86acc8c1a5b1eae1c9d050528aee51048811825bafbe16dbbd640e69caec5c6bb821
7
- data.tar.gz: 188d63f9cc1684ebcfa5162546ca57a3b7f0be5ff0090ae007234bb9cd26de8e890544d21de2fae9fb11deea0ac5117e5d75e308dc1247e469e6f4d607d56ffc
6
+ metadata.gz: 4389c31e3363dba888bc2e40e14602fa5d541908eb864d6f93c7af68f83aeebab15b9712a4db9e728758644c384d6aeded4105d8214ad0aeed85d1ccf337ca45
7
+ data.tar.gz: 8fd9db580a45b341c99200c4583443ba7951dff5a37bdb4ffd31dccecd699a449adf868b1b48bc66621f5eb513bfe7b4523d99f2454c3943cb774560be704d96
data/README.md CHANGED
@@ -29,7 +29,7 @@ theme: fortyone-jekyll-theme
29
29
  + `collection` listing all contents of a given collection
30
30
  + `post` with pagination to navigate through posts
31
31
  + `page` generic template
32
- + `home` with tiles from pages,or posts, or collections. (setup in _config.yml)
32
+ + `home` with tiles from pages,or posts, or collections. (setup in _config.yml or in the page front matter)
33
33
  + `default` the base template of all layouts
34
34
  + [Customize the theme's Sass](https://help.github.com/articles/customizing-css-and-html-in-your-jekyll-theme/#customizing-your-jekyll-themes-css)
35
35
  with `sass` variables easily overriden, just set them before `@import "{{ site.theme }}";` [_sass/libs/_vars.scss](https://gitlab.com/agustibr/fortyone-jekyll-theme/blob/master/_sass/libs/_vars.scss)
@@ -1,9 +1,12 @@
1
- {% assign collection= site.collections | where: "label", site.tiles-source | first %}
2
- {% assign items = collection.docs | limit:site.tiles-count %}
1
+ {% assign tiles_source = page.tiles-source || site.tiles-source %}
2
+ {% assign tiles_count = page.tiles-count || site.tiles-count %}
3
+
4
+ {% assign collection = site.collections | where: "label", tiles_source | first %}
5
+ {% assign items = collection.docs | limit:tiles_count %}
3
6
 
4
7
  <section id="one" class="tiles">
5
8
  {% if site.tiles-source == 'pages' %}
6
- {% for page in site.pages limit:site.tiles-count %}
9
+ {% for page in site.pages limit:tiles_count %}
7
10
  {% include _home_tile.html item= page %}
8
11
  {% endfor %}
9
12
  {% else %}
@@ -10,7 +10,7 @@ layout: default
10
10
 
11
11
  <div class="content">
12
12
  <p style="text-transform: uppercase;">
13
- {{ site.description }}
13
+ {{ page.description || site.description }}
14
14
  </p>
15
15
 
16
16
  {% if page.banner_cta %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fortyone-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Banchich
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-12 00:00:00.000000000 Z
12
+ date: 2019-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll