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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/distorted-jekyll.rb +0 -4
  4. data/lib/distorted-jekyll/{template/13th-style.css → 13th-style.css} +0 -0
  5. data/lib/distorted-jekyll/13th-style.rb +1 -1
  6. data/lib/distorted-jekyll/_config_default.yml +3 -21
  7. data/lib/distorted-jekyll/invoker.rb +194 -219
  8. data/lib/distorted-jekyll/liquid_liquid.rb +255 -0
  9. data/lib/distorted-jekyll/liquid_liquid/anchor.liquid +5 -0
  10. data/lib/distorted-jekyll/liquid_liquid/anchor_inline.liquid +1 -0
  11. data/lib/distorted-jekyll/liquid_liquid/embed.liquid +1 -0
  12. data/lib/distorted-jekyll/liquid_liquid/img.liquid +1 -0
  13. data/lib/distorted-jekyll/liquid_liquid/object.liquid +5 -0
  14. data/lib/distorted-jekyll/liquid_liquid/picture.liquid +15 -0
  15. data/lib/distorted-jekyll/liquid_liquid/picture.rb +48 -0
  16. data/lib/distorted-jekyll/liquid_liquid/picture_source.liquid +1 -0
  17. data/lib/distorted-jekyll/liquid_liquid/root.liquid +5 -0
  18. data/lib/distorted-jekyll/liquid_liquid/video.liquid +5 -0
  19. data/lib/distorted-jekyll/liquid_liquid/video_source.liquid +1 -0
  20. data/lib/distorted-jekyll/md_injection.rb +30 -25
  21. data/lib/distorted-jekyll/media_molecule.rb +20 -0
  22. data/lib/distorted-jekyll/media_molecule/font.rb +21 -0
  23. data/lib/distorted-jekyll/media_molecule/image.rb +15 -0
  24. data/lib/distorted-jekyll/media_molecule/never_let_you_down.rb +28 -0
  25. data/lib/distorted-jekyll/media_molecule/pdf.rb +108 -0
  26. data/lib/distorted-jekyll/media_molecule/svg.rb +20 -0
  27. data/lib/distorted-jekyll/media_molecule/text.rb +23 -0
  28. data/lib/distorted-jekyll/media_molecule/video.rb +45 -0
  29. data/lib/distorted-jekyll/monkey_business/jekyll/cleaner.rb +68 -1
  30. data/lib/distorted-jekyll/static_state.rb +19 -60
  31. data/lib/distorted-jekyll/the_setting_sun.rb +179 -0
  32. metadata +26 -21
  33. data/lib/distorted-jekyll/floor.rb +0 -266
  34. data/lib/distorted-jekyll/molecule/font.rb +0 -62
  35. data/lib/distorted-jekyll/molecule/image.rb +0 -94
  36. data/lib/distorted-jekyll/molecule/lastresort.rb +0 -51
  37. data/lib/distorted-jekyll/molecule/pdf.rb +0 -79
  38. data/lib/distorted-jekyll/molecule/svg.rb +0 -47
  39. data/lib/distorted-jekyll/molecule/text.rb +0 -62
  40. data/lib/distorted-jekyll/molecule/video.rb +0 -85
  41. data/lib/distorted-jekyll/template/error_code.liquid +0 -3
  42. data/lib/distorted-jekyll/template/font.liquid +0 -32
  43. data/lib/distorted-jekyll/template/image.liquid +0 -32
  44. data/lib/distorted-jekyll/template/lastresort.liquid +0 -20
  45. data/lib/distorted-jekyll/template/pdf.liquid +0 -14
  46. data/lib/distorted-jekyll/template/svg.liquid +0 -32
  47. data/lib/distorted-jekyll/template/text.liquid +0 -32
  48. data/lib/distorted-jekyll/template/video.liquid +0 -11
@@ -1,3 +0,0 @@
1
- <div class="distorted error">
2
- <p>{{ message }}</p>
3
- </div>
@@ -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>