distorted-jekyll 0.5.3 → 0.6.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.
@@ -0,0 +1,32 @@
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>
@@ -0,0 +1,11 @@
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>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distorted-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - Allison Reid
7
+ - okeeblow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-09 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,28 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.5.3
89
+ version: 0.6.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.5.3
97
- - !ruby/object:Gem::Dependency
98
- name: mime-types
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.0'
96
+ version: 0.6.0
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: kramdown
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +108,6 @@ dependencies:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
110
  version: '2.0'
125
- - !ruby/object:Gem::Dependency
126
- name: ruby-filemagic
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0.7'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '0.7'
139
111
  description: Jekyll::DistorteD is a Liquid tag for embedding media in a Jekyll site
140
112
  with automatic thumbnailing, cropping, and format conversion.
141
113
  email:
@@ -144,7 +116,33 @@ executables: []
144
116
  extensions: []
145
117
  extra_rdoc_files: []
146
118
  files:
119
+ - LICENSE
147
120
  - README.md
121
+ - lib/distorted-jekyll.rb
122
+ - lib/distorted-jekyll/13th-style.rb
123
+ - lib/distorted-jekyll/_config_default.yml
124
+ - lib/distorted-jekyll/blocks.rb
125
+ - lib/distorted-jekyll/floor.rb
126
+ - lib/distorted-jekyll/invoker.rb
127
+ - lib/distorted-jekyll/md_injection.rb
128
+ - lib/distorted-jekyll/molecule/font.rb
129
+ - lib/distorted-jekyll/molecule/image.rb
130
+ - lib/distorted-jekyll/molecule/lastresort.rb
131
+ - lib/distorted-jekyll/molecule/pdf.rb
132
+ - lib/distorted-jekyll/molecule/svg.rb
133
+ - lib/distorted-jekyll/molecule/text.rb
134
+ - lib/distorted-jekyll/molecule/video.rb
135
+ - lib/distorted-jekyll/monkey_business/jekyll/cleaner.rb
136
+ - lib/distorted-jekyll/static_state.rb
137
+ - lib/distorted-jekyll/template/13th-style.css
138
+ - lib/distorted-jekyll/template/error_code.liquid
139
+ - lib/distorted-jekyll/template/font.liquid
140
+ - lib/distorted-jekyll/template/image.liquid
141
+ - lib/distorted-jekyll/template/lastresort.liquid
142
+ - lib/distorted-jekyll/template/pdf.liquid
143
+ - lib/distorted-jekyll/template/svg.liquid
144
+ - lib/distorted-jekyll/template/text.liquid
145
+ - lib/distorted-jekyll/template/video.liquid
148
146
  homepage: https://cooltrainer.org
149
147
  licenses:
150
148
  - AGPL-3.0
@@ -167,5 +165,5 @@ requirements: []
167
165
  rubygems_version: 3.1.4
168
166
  signing_key:
169
167
  specification_version: 4
170
- summary: Media transformation and embedding framework for Jekyll.
168
+ summary: Multimedia toolkit for Jekyll websites.
171
169
  test_files: []