jekyll_patternbot 0.20.0 → 0.21.0

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: 82a6236b5a154b425d43f637768da1d880fd66cf871b93318a697f983d36b024
4
- data.tar.gz: 5b9224def17eb3f3e6766a8390078ca36e8c8628671232c322ce4ce77ee9d92f
3
+ metadata.gz: 31189c987175855555bf24f1389c41468532980eb3898f9c7fd00dd85a20278f
4
+ data.tar.gz: c5f049ae82a97cbc58033e2015ae5b88b0d7ebb89dc0283fb6320b8d23563335
5
5
  SHA512:
6
- metadata.gz: c5a5904a9e963672838b405348448c750bd623be7f34567d67b8bddbc0e36a0519a5057a06b22776e40ac45c4ba24bd5972a39b2f74a6378cd979130546d3b41
7
- data.tar.gz: 2f695a155aab1416365904713dc2a7cb72f69195620cccfb1cdfa216bd51e82b4c760210aa01a5c5b431021efdb936b024bd4f2e0e4fdfb114fc9a08b89001fb
6
+ metadata.gz: 2897542c80649d78a26d46597a71a62895894c556a91de0c3ed2c01ec257b18b27187b851b42c02fa081904c5bfce668fd7c7fbf10c8e016ff2e2d17719d7ba6
7
+ data.tar.gz: d4115433f6e8775da693e1e68fa24a2ee7072a4db653643ec3b07a765e89f28f1fdca7fbb98c89e30651f17d90d2bf7a2cf78b994927e35f8a71791c61916771
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ---
7
7
 
8
+ ## [0.21.0] — 2019-01-16
9
+
10
+ ### Fixed
11
+
12
+ - Fixed the heading colours for patterns when their first pattern had a background.
13
+
14
+ ---
15
+
8
16
  ## [0.20.0] — 2019-01-16
9
17
 
10
18
  ### Fixed
@@ -14,16 +14,18 @@
14
14
 
15
15
  {% assign first_pattern_has_bg = false %}
16
16
  {% assign first_pattern_bg = false %}
17
- {% if first_pattern.background %}
18
- {% assign first_pattern_has_bg = true %}
19
- {% assign first_pattern_bg = first_pattern.background %}
20
- {% endif %}
21
-
22
- {% assign internal_first_pattern_has_bg = first_pattern_name | has_pattern_background_color:include.pattern.name %}
23
- {% if internal_first_pattern_has_bg %}
24
- {% assign first_pattern_has_bg = true %}
25
- {% assign first_pattern_bg = first_pattern_name | get_pattern_background_color:include.pattern.name %}
26
- {% endif %}
17
+ {% assign internal_pattern_has_bg = false %}
18
+ {% unless show_sub_headings %}
19
+ {% if first_pattern.background %}
20
+ {% assign first_pattern_has_bg = true %}
21
+ {% assign first_pattern_bg = first_pattern.background %}
22
+ {% endif %}
23
+ {% assign internal_first_pattern_has_bg = first_pattern_name | has_pattern_background_color:include.pattern.name %}
24
+ {% if internal_first_pattern_has_bg %}
25
+ {% assign first_pattern_has_bg = true %}
26
+ {% assign first_pattern_bg = first_pattern_name | get_pattern_background_color:include.pattern.name %}
27
+ {% endif %}
28
+ {% endunless %}
27
29
 
28
30
  {% if first_pattern_has_bg %}
29
31
  <style>
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JekyllPatternbot
2
- VERSION = '0.20.0'
2
+ VERSION = '0.21.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_patternbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas J Bradley