noir-for-jekyll 1.3.0 → 1.3.3

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: 9a6462c25709bb294f53a23097181cecfb6665c6c69ebeb58790fa0efe413d5e
4
- data.tar.gz: ca761320b6c44ecc9f942257016f9a030c731155b0ef879f8547007e3e09618c
3
+ metadata.gz: 04ef26f897d7be6b1f975281165802ee39bb30303fc4843c6086e2731e5104f5
4
+ data.tar.gz: e503a3ace48f37a9fbfd78df5e66fbe463b30eb8ee7deee0ab710263dd00d63c
5
5
  SHA512:
6
- metadata.gz: 6f20310d0e3ecc05d3f4c88b4e6c85ccd75a60a3bf688b90f66391956306015dc4c0ecb9e9f59e745c290d4abb4d8b4939bdeb429a49e13666294a294ff5c5cf
7
- data.tar.gz: dd24db8ce66e5dd2b853fc1210525469c962d0244b7c0643c9875866a2a6966794aef6562bec4bc988ff13814af7132ca80da993886698f939960d2a9187371c
6
+ metadata.gz: 225465428c007619f214aae85cba0c8400b35daf6238a496d015326e3556cdb7ee0acbdc99581bb6be5d9846a206dba8b88d7ee170be8a2400b3939d28d8c71b
7
+ data.tar.gz: e4e1f2132f12f64242a7ea63ebbc597921c792919662ccb90a9c7b49b7ded7a92cd477f43fca3507eb1957c3b9a6d5e71b728925af1af0d1363cf517b18a4d08
@@ -0,0 +1,10 @@
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v3.1.0
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+
9
+ {% capture _LINE_FEED %}
10
+ {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
data/_sass/_masthead.scss CHANGED
@@ -31,8 +31,7 @@
31
31
 
32
32
  .navigation {
33
33
  display: block;
34
- font-size: 90%;
35
- font-variant: small-caps;
34
+ font-size: 100%;
36
35
  font-weight: 500;
37
36
  color: $body-color;
38
37
 
data/_sass/_type.scss CHANGED
@@ -5,7 +5,7 @@ h1, h2, h3, h4, h5, h6 {
5
5
  font-weight: 600;
6
6
  line-height: 1.25;
7
7
  text-rendering: optimizeLegibility;
8
- color: #55555c;
8
+ color: #ac4a32;
9
9
  position: relative;
10
10
 
11
11
  @media (prefers-color-scheme: dark) {
@@ -15,7 +15,7 @@ h1, h2, h3, h4, h5, h6 {
15
15
 
16
16
  h2::before,h4::before,h5::before,h6::before {
17
17
  content: "#";
18
- color: #55555c;
18
+ color: #ac4a32;
19
19
  left: -1.2em;
20
20
  top: 0;
21
21
  position: absolute;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noir-for-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-26 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -62,6 +62,7 @@ files:
62
62
  - LICENSE.md
63
63
  - README.md
64
64
  - _includes/head.html
65
+ - _layouts/compress.html
65
66
  - _layouts/default.html
66
67
  - _layouts/page.html
67
68
  - _layouts/post.html