distorted-jekyll 0.6.0 → 0.7.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 +1 -1
- data/lib/distorted-jekyll.rb +0 -4
- data/lib/distorted-jekyll/{template/13th-style.css → 13th-style.css} +0 -0
- data/lib/distorted-jekyll/13th-style.rb +1 -1
- data/lib/distorted-jekyll/_config_default.yml +3 -21
- data/lib/distorted-jekyll/invoker.rb +194 -219
- data/lib/distorted-jekyll/liquid_liquid.rb +255 -0
- data/lib/distorted-jekyll/liquid_liquid/anchor.liquid +5 -0
- data/lib/distorted-jekyll/liquid_liquid/anchor_inline.liquid +1 -0
- data/lib/distorted-jekyll/liquid_liquid/embed.liquid +1 -0
- data/lib/distorted-jekyll/liquid_liquid/img.liquid +1 -0
- data/lib/distorted-jekyll/liquid_liquid/object.liquid +5 -0
- data/lib/distorted-jekyll/liquid_liquid/picture.liquid +15 -0
- data/lib/distorted-jekyll/liquid_liquid/picture.rb +48 -0
- data/lib/distorted-jekyll/liquid_liquid/picture_source.liquid +1 -0
- data/lib/distorted-jekyll/liquid_liquid/root.liquid +5 -0
- data/lib/distorted-jekyll/liquid_liquid/video.liquid +5 -0
- data/lib/distorted-jekyll/liquid_liquid/video_source.liquid +1 -0
- data/lib/distorted-jekyll/md_injection.rb +30 -25
- data/lib/distorted-jekyll/media_molecule.rb +20 -0
- data/lib/distorted-jekyll/media_molecule/font.rb +21 -0
- data/lib/distorted-jekyll/media_molecule/image.rb +15 -0
- data/lib/distorted-jekyll/media_molecule/never_let_you_down.rb +28 -0
- data/lib/distorted-jekyll/media_molecule/pdf.rb +108 -0
- data/lib/distorted-jekyll/media_molecule/svg.rb +20 -0
- data/lib/distorted-jekyll/media_molecule/text.rb +23 -0
- data/lib/distorted-jekyll/media_molecule/video.rb +45 -0
- data/lib/distorted-jekyll/monkey_business/jekyll/cleaner.rb +68 -1
- data/lib/distorted-jekyll/static_state.rb +19 -60
- data/lib/distorted-jekyll/the_setting_sun.rb +179 -0
- metadata +26 -21
- data/lib/distorted-jekyll/floor.rb +0 -266
- data/lib/distorted-jekyll/molecule/font.rb +0 -62
- data/lib/distorted-jekyll/molecule/image.rb +0 -94
- data/lib/distorted-jekyll/molecule/lastresort.rb +0 -51
- data/lib/distorted-jekyll/molecule/pdf.rb +0 -79
- data/lib/distorted-jekyll/molecule/svg.rb +0 -47
- data/lib/distorted-jekyll/molecule/text.rb +0 -62
- data/lib/distorted-jekyll/molecule/video.rb +0 -85
- data/lib/distorted-jekyll/template/error_code.liquid +0 -3
- data/lib/distorted-jekyll/template/font.liquid +0 -32
- data/lib/distorted-jekyll/template/image.liquid +0 -32
- data/lib/distorted-jekyll/template/lastresort.liquid +0 -20
- data/lib/distorted-jekyll/template/pdf.liquid +0 -14
- data/lib/distorted-jekyll/template/svg.liquid +0 -32
- data/lib/distorted-jekyll/template/text.liquid +0 -32
- data/lib/distorted-jekyll/template/video.liquid +0 -11
@@ -1,32 +0,0 @@
|
|
1
|
-
<div class="distorted font">
|
2
|
-
{%- if href != true %}
|
3
|
-
{%- capture href %}{{ path }}{{ name }}{%- endcapture -%}
|
4
|
-
{%- endif %}
|
5
|
-
{%- if alt != nil and alt != "" %}
|
6
|
-
{%- capture attr_alt %} alt="{{ alt }}"{%- endcapture -%}
|
7
|
-
{%- endif %}
|
8
|
-
{%- if title != nil and title != "" %}
|
9
|
-
{%- capture attr_title %} title="{{ title }}"{%- endcapture -%}
|
10
|
-
{%- endif %}
|
11
|
-
{%- if loading != nil and loading != "" %}
|
12
|
-
{%- capture attr_loading %} loading="{{ loading }}"{%- endcapture -%}
|
13
|
-
{%- endif %}
|
14
|
-
<a href="{{ href }}"{{ attr_title }} target="_blank">
|
15
|
-
<picture>
|
16
|
-
{%- if sources %}
|
17
|
-
{%- for source in sources %}
|
18
|
-
{%- if source.media != nil and source.media != "" %}
|
19
|
-
{%- capture attr_media %} media="{{ source.media }}"{%- endcapture -%}
|
20
|
-
{%- else %}
|
21
|
-
{%- capture attr_media %}{%- endcapture -%}
|
22
|
-
{%- endif %}
|
23
|
-
<source srcset="{{ path }}{{ source.name }}" type="{{ source.type }}"{{ attr_media }}/>
|
24
|
-
{%- endfor %}
|
25
|
-
{%- endif %}
|
26
|
-
<img src="{{ path }}{{ fallback_img }}"{{ attr_alt }}{{ attr_title }}{{ attr_loading }}/>
|
27
|
-
</picture>
|
28
|
-
</a>
|
29
|
-
{%- if caption != nil and caption != "" %}
|
30
|
-
<p class="distorted-caption">{{ caption }}</p>
|
31
|
-
{%- endif %}
|
32
|
-
</div>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<div class="distorted image">
|
2
|
-
{%- if href != true %}
|
3
|
-
{%- capture href %}{{ path }}{{ name }}{%- endcapture -%}
|
4
|
-
{%- endif %}
|
5
|
-
{%- if alt != nil and alt != "" %}
|
6
|
-
{%- capture attr_alt %} alt="{{ alt }}"{%- endcapture -%}
|
7
|
-
{%- endif %}
|
8
|
-
{%- if title != nil and title != "" %}
|
9
|
-
{%- capture attr_title %} title="{{ title }}"{%- endcapture -%}
|
10
|
-
{%- endif %}
|
11
|
-
{%- if loading != nil and loading != "" %}
|
12
|
-
{%- capture attr_loading %} loading="{{ loading }}"{%- endcapture -%}
|
13
|
-
{%- endif %}
|
14
|
-
<a href="{{ href }}"{{ attr_title }} target="_blank">
|
15
|
-
<picture>
|
16
|
-
{%- if sources %}
|
17
|
-
{%- for source in sources %}
|
18
|
-
{%- if source.media != nil and source.media != "" %}
|
19
|
-
{%- capture attr_media %} media="{{ source.media }}"{%- endcapture -%}
|
20
|
-
{%- else %}
|
21
|
-
{%- capture attr_media %}{%- endcapture -%}
|
22
|
-
{%- endif %}
|
23
|
-
<source srcset="{{ path }}{{ source.name }}" type="{{ source.type }}"{{ attr_media }}/>
|
24
|
-
{%- endfor %}
|
25
|
-
{%- endif %}
|
26
|
-
<img src="{{ path }}{{ fallback_img }}"{{ attr_alt }}{{ attr_title }}{{ attr_loading }}/>
|
27
|
-
</picture>
|
28
|
-
</a>
|
29
|
-
{%- if caption != nil and caption != "" %}
|
30
|
-
<p class="distorted-caption">{{ caption }}</p>
|
31
|
-
{%- endif %}
|
32
|
-
</div>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<div class="distorted lastresort">
|
2
|
-
{%- if href != true %}
|
3
|
-
{%- capture href %}{{ path }}{{ name }}{%- endcapture -%}
|
4
|
-
{%- endif %}
|
5
|
-
{%- if alt != nil and alt != "" %}
|
6
|
-
{%- capture attr_alt %} alt="{{ alt }}"{%- endcapture -%}
|
7
|
-
{%- endif %}
|
8
|
-
{%- if title != nil and title != "" %}
|
9
|
-
{%- capture attr_title %} title="{{ title }}"{%- endcapture -%}
|
10
|
-
{%- endif %}
|
11
|
-
{%- if loading != nil and loading != "" %}
|
12
|
-
{%- capture attr_loading %} loading="{{ loading }}"{%- endcapture -%}
|
13
|
-
{%- endif %}
|
14
|
-
<a href="{{ href }}"{{ attr_title }} target="_blank">
|
15
|
-
<img src="{{ path }}{{ name }}"{{ attr_alt }}{{ attr_title }}{{ attr_loading }}/>
|
16
|
-
</a>
|
17
|
-
{%- if caption != nil and caption != "" %}
|
18
|
-
<p class="distorted-caption">{{ caption }}</p>
|
19
|
-
{%- endif %}
|
20
|
-
</div>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<div class="distorted pdf">
|
2
|
-
{%- if title != nil and title != "" %}
|
3
|
-
{%- capture pdf_link %}{{ title }}{%- endcapture -%}
|
4
|
-
{%- elsif alt != nil and alt != "" %}
|
5
|
-
{%- capture pdf_link %}{{ alt }}{%- endcapture -%}
|
6
|
-
{%- endif %}
|
7
|
-
<object data="{{ path }}{{ name }}#{{ pdf_open_params }}" type="application/pdf" width="{{ width }}" height="{{ height }}">
|
8
|
-
<embed src="{{ path }}{{ name }}#{{ pdf_open_params }}" type="application/pdf" width="{{ width }}" height="{{ height }}"/>
|
9
|
-
<a href="{{ path }}{{ name }}#{{ pdf_open_params }}">{{ pdf_link }} [PDF]</a>
|
10
|
-
</object>
|
11
|
-
{%- if caption != nil and caption != "" %}
|
12
|
-
<p class="distorted-caption">{{ caption }}</p>
|
13
|
-
{%- endif %}
|
14
|
-
</div>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<div class="distorted svg">
|
2
|
-
{%- if href != true %}
|
3
|
-
{%- capture href %}{{ path }}{{ name }}{%- endcapture -%}
|
4
|
-
{%- endif %}
|
5
|
-
{%- if alt != nil and alt != "" %}
|
6
|
-
{%- capture attr_alt %} alt="{{ alt }}"{%- endcapture -%}
|
7
|
-
{%- endif %}
|
8
|
-
{%- if title != nil and title != "" %}
|
9
|
-
{%- capture attr_title %} title="{{ title }}"{%- endcapture -%}
|
10
|
-
{%- endif %}
|
11
|
-
{%- if loading != nil and loading != "" %}
|
12
|
-
{%- capture attr_loading %} loading="{{ loading }}"{%- endcapture -%}
|
13
|
-
{%- endif %}
|
14
|
-
<a href="{{ href }}"{{ attr_title }} target="_blank">
|
15
|
-
<picture>
|
16
|
-
{%- if sources %}
|
17
|
-
{%- for source in sources %}
|
18
|
-
{%- if source.media != nil and source.media != "" %}
|
19
|
-
{%- capture attr_media %} media="{{ source.media }}"{%- endcapture -%}
|
20
|
-
{%- else %}
|
21
|
-
{%- capture attr_media %}{%- endcapture -%}
|
22
|
-
{%- endif %}
|
23
|
-
<source srcset="{{ path }}{{ source.name }}" type="{{ source.type }}"{{ attr_media }}/>
|
24
|
-
{%- endfor %}
|
25
|
-
{%- endif %}
|
26
|
-
<img src="{{ path }}{{ fallback_img }}"{{ attr_alt }}{{ attr_title }}{{ attr_loading }}/>
|
27
|
-
</picture>
|
28
|
-
</a>
|
29
|
-
{%- if caption != nil and caption != "" %}
|
30
|
-
<p class="distorted-caption">{{ caption }}</p>
|
31
|
-
{%- endif %}
|
32
|
-
</div>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<div class="distorted text">
|
2
|
-
{%- if href != true %}
|
3
|
-
{%- capture href %}{{ path }}{{ name }}{%- endcapture -%}
|
4
|
-
{%- endif %}
|
5
|
-
{%- if alt != nil and alt != "" %}
|
6
|
-
{%- capture attr_alt %} alt="{{ alt }}"{%- endcapture -%}
|
7
|
-
{%- endif %}
|
8
|
-
{%- if title != nil and title != "" %}
|
9
|
-
{%- capture attr_title %} title="{{ title }}"{%- endcapture -%}
|
10
|
-
{%- endif %}
|
11
|
-
{%- if loading != nil and loading != "" %}
|
12
|
-
{%- capture attr_loading %} loading="{{ loading }}"{%- endcapture -%}
|
13
|
-
{%- endif %}
|
14
|
-
<a href="{{ href }}"{{ attr_title }} target="_blank">
|
15
|
-
<picture>
|
16
|
-
{%- if sources %}
|
17
|
-
{%- for source in sources %}
|
18
|
-
{%- if source.media != nil and source.media != "" %}
|
19
|
-
{%- capture attr_media %} media="{{ source.media }}"{%- endcapture -%}
|
20
|
-
{%- else %}
|
21
|
-
{%- capture attr_media %}{%- endcapture -%}
|
22
|
-
{%- endif %}
|
23
|
-
<source srcset="{{ path }}{{ source.name }}" type="{{ source.type }}"{{ attr_media }}/>
|
24
|
-
{%- endfor %}
|
25
|
-
{%- endif %}
|
26
|
-
<img src="{{ path }}{{ fallback_img }}"{{ attr_alt }}{{ attr_title }}{{ attr_loading }}/>
|
27
|
-
</picture>
|
28
|
-
</a>
|
29
|
-
{%- if caption != nil and caption != "" %}
|
30
|
-
<p class="distorted-caption">{{ caption }}</p>
|
31
|
-
{%- endif %}
|
32
|
-
</div>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<div class="distorted video">
|
2
|
-
{%- if href != true %}
|
3
|
-
{%- capture href %}{{ path }}{{ name }}{%- endcapture -%}
|
4
|
-
{%- endif %}
|
5
|
-
<video id="distorted-video" class="video-js vjs-default-skin" controls>
|
6
|
-
<source src="{{ path }}{{ basename }}.hls/{{ basename }}.m3u8" type="application/x-mpegURL"/>
|
7
|
-
</video>
|
8
|
-
{%- if caption != nil and caption != "" %}
|
9
|
-
<p class="distorted-caption">{{ caption }}</p>
|
10
|
-
{%- endif %}
|
11
|
-
</div>
|