jekyll-vimeo 0.1.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.
- checksums.yaml +7 -0
- data/lib/jekyll-vimeo.rb +20 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 25eeec25b1a665c4d6001344d7a8be44d5b95e67
|
4
|
+
data.tar.gz: 74d1cb9c9f839cab24bc7eff67a5e24f74c735a1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 007f093acd830fd3ad8785bd7eb2707a9ec754b986a7fd55e1f59bb71480ef6a79ae2642fbc421aea43897690dfc52cc78c384aa071e99ea572913312ef2176b
|
7
|
+
data.tar.gz: 930627b7e2b76ccfcf61a2a6b5404edf8b9b533d4f1c70141dea19e4339d107fd50e9c54d8c30460641868a1e82ce9bae319b76eb9c6e3657f6d3ed89204e5aa
|
data/lib/jekyll-vimeo.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# A plugin for embedding videos from Vimeo using a simple Liquid tag, ie: {% vimeo 12345678 %}.
|
2
|
+
# Based of the Youtube plugin from http://www.portwaypoint.co.uk/jekyll-youtube-liquid-template-tag-gist/
|
3
|
+
|
4
|
+
module Jekyll
|
5
|
+
class Vimeo < Liquid::Tag
|
6
|
+
@@width = 500
|
7
|
+
@@height = 281
|
8
|
+
|
9
|
+
def initialize(name, id, tokens)
|
10
|
+
super
|
11
|
+
@id = id
|
12
|
+
end
|
13
|
+
|
14
|
+
def render(context)
|
15
|
+
%(<iframe width="#{@@width}" height="#{@@height}" src="http://player.vimeo.com/video/#{@id}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
Liquid::Template.register_tag('vimeo', Jekyll::Vimeo)
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-vimeo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ellen Gummesson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: jekyll plugin to generate html snippets for embedding Vimeo videos
|
14
|
+
email:
|
15
|
+
- ellengummesson@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/jekyll-vimeo.rb
|
21
|
+
homepage: https://github.com/rawiron/jekyll-vimeo
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.5.1
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: jekyll vimeo plugin
|
45
|
+
test_files: []
|