jekyll-poly 0.0.1
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 +7 -0
- data/README.md +74 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cd340be6b6d4a6c074f22a2aec6a160062c4da0a34b4f8f342d315567126f4ec
|
4
|
+
data.tar.gz: 759fd9aa769ac00e5583c9eb4ca3cef4335ed8db29087f7249bf7d32815c6cad
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c95af32c3e5a2edaddbe4d893ab69495d035e0e40e57ea230193fd01a06f87266d952f99db3eab892c868e5eef23eca790f67316c1e8e17efd6808d58f14ba5
|
7
|
+
data.tar.gz: 7bc37751fda6e4061874dc82dacb5fd2196e4e8fa3242a8814637f23c09150bab0b0b280bfb7399a89807ab21e753d65b8f9504c30b540745dda1ccdad782551
|
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# jekyll-poly
|
2
|
+
|
3
|
+
This Jekyll plugin provides a liquid tag that needs a Google Poly URL as input and will generates a (responsive) html snippet to embed the video into your site.
|
4
|
+
|
5
|
+
# Jekyll Youtube
|
6
|
+
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
group :jekyll_plugins do
|
14
|
+
gem "jekyll-poly"
|
15
|
+
end
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Alternatively install the gem yourself as:
|
23
|
+
|
24
|
+
$ gem install jekyll-poly
|
25
|
+
|
26
|
+
and put this in your ``_config.yml``
|
27
|
+
|
28
|
+
```yaml
|
29
|
+
plugins: [jekyll-poly]
|
30
|
+
# This will require each of these gems automatically.
|
31
|
+
```
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
```
|
36
|
+
{% google_poly "https://poly.google.com/view/7aCY_MMZWm8" %}
|
37
|
+
```
|
38
|
+
or using variables/front matter
|
39
|
+
|
40
|
+
```
|
41
|
+
{% google_poly page.googlepolyurl %}
|
42
|
+
```
|
43
|
+
(Do not forget to add the tag `googlepolyurl` to the frontmatter of your page !)
|
44
|
+
|
45
|
+
## Result
|
46
|
+
|
47
|
+
By default the plugin will output the following code
|
48
|
+
|
49
|
+
|
50
|
+
```markup
|
51
|
+
<style>
|
52
|
+
.google-poly-embed-container {
|
53
|
+
position: relative;
|
54
|
+
padding-bottom: 56.25%;
|
55
|
+
height: 0;
|
56
|
+
overflow: hidden;
|
57
|
+
max-width: 100%;
|
58
|
+
}
|
59
|
+
.google-poly-embed-container iframe,
|
60
|
+
.google-poly-embed-container object,
|
61
|
+
.google-poly-embed-container embed {
|
62
|
+
position: absolute;
|
63
|
+
top: 0;
|
64
|
+
left: 0;
|
65
|
+
width: 100%;
|
66
|
+
height: 100%;
|
67
|
+
}
|
68
|
+
</style>
|
69
|
+
<div class='google-poly-embed-container'>
|
70
|
+
<iframe width="100%" height="480px" src="https://poly.google.com/view/7aCY_MMZWm8/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>
|
71
|
+
</div>
|
72
|
+
```
|
73
|
+
|
74
|
+
You can specify your own snippet by creating a partial ``_includes/poly.html``. Inside that partial the Google Poly ID is available as ``{{ poly_id }}``.
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-poly
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Leo Blondel
|
8
|
+
- Lisa Blondel
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jekyll
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.10'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.10'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '10.0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '10.0'
|
56
|
+
description: jekyll plugin to generate html snippets for embedding Google Poly Assets
|
57
|
+
email:
|
58
|
+
- leo@jogl.io
|
59
|
+
- blondel.lisa@gmail.com
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- README.md
|
65
|
+
homepage: https://gitlab.com/xqua/jekyll-poly
|
66
|
+
licenses:
|
67
|
+
- MIT
|
68
|
+
metadata: {}
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubygems_version: 3.0.3
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: jekyll plugin to generate html snippets for embedding Google Poly Assets
|
88
|
+
test_files: []
|