jekyll-plugin-gkpicturetag 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f7f0d48b7a185fb93b40e0c53ca31596b9f1bf3f9714172a66adf12778ada3b6
4
+ data.tar.gz: e5d6ce4f1b02fd910995abbcdd7ecc1cb14d17513296f1ab3f1ff66bc8eb4853
5
+ SHA512:
6
+ metadata.gz: efd05979d1dbdec659946eef1ddef9cef0f4e689757eb45a3f3f05aad5de8e0ebe4b7a2d1a5cf35162310ab47b01229f550ead864362c8ba1ecfb5ec32115491
7
+ data.tar.gz: c9288744962c8af62e17bea1dc757ac87ae728c21185c85c4bf431675248a4e42d066f45352d8deb5b4a223795b1adc11f0f088531db8a6bdaace5570ab3c6ab
data/LICENSE.txt ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2018 glueckkanja.com
2
+
3
+ The above copyright notice and this permission notice shall be included in
4
+ all copies or substantial portions of the Software.
5
+
6
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
11
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
12
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # jekyll-theme-glueckkanja
2
+
3
+ ## Build
4
+ ```
5
+ gem build jekyll-theme-glueckkanja.gemspec
6
+ gem push jekyll-theme-glueckkanja-*.gem
7
+ ```
8
+
9
+
10
+ ## General Jekyll Theme Information
11
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
12
+
13
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
14
+
15
+ TODO: Delete this and the text above, and describe your gem
16
+
17
+
18
+ ## Installation
19
+
20
+ Add this line to your Jekyll site's `Gemfile`:
21
+
22
+ ```ruby
23
+ gem "jekyll-theme-glueckkanja"
24
+ ```
25
+
26
+ And add this line to your Jekyll site's `_config.yml`:
27
+
28
+ ```yaml
29
+ theme: jekyll-theme-glueckkanja
30
+ ```
31
+
32
+ And then execute:
33
+
34
+ $ bundle
35
+
36
+ Or install it yourself as:
37
+
38
+ $ gem install jekyll-theme-glueckkanja
39
+
40
+ ## Usage
41
+
42
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
43
+
44
+ ## Contributing
45
+
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
47
+
48
+ ## Development
49
+
50
+ To set up your environment to develop this theme, run `bundle install`.
51
+
52
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
53
+
54
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
55
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-glueckkanja.gemspec` accordingly.
56
+
57
+ ## Misc
58
+
59
+ ### Some housekeeping notes
60
+ ```
61
+ gem list
62
+ gem check
63
+ gem cleanup
64
+ ```
@@ -0,0 +1,29 @@
1
+ class YouTube < Liquid::Tag
2
+ Syntax = /^\s*([^\s]+)(\s+(\d+)\s+(\d+)\s*)?/
3
+
4
+ def initialize(tagName, markup, tokens)
5
+ super
6
+
7
+ if markup =~ Syntax then
8
+ @id = $1
9
+
10
+ if $2.nil? then
11
+ @width = 560
12
+ @height = 420
13
+ else
14
+ @width = $2.to_i
15
+ @height = $3.to_i
16
+ end
17
+ else
18
+ raise "No YouTube ID provided in the \"youtube\" tag"
19
+ end
20
+ end
21
+
22
+ def render(context)
23
+ # "<iframe width=\"#{@width}\" height=\"#{@height}\" src=\"https://www.youtube.com/embed/#{@id}\" frameborder=\"0\"allowfullscreen></iframe>"
24
+ "<iframe width=\"#{@width}\" height=\"#{@height}\" src=\"https://www.youtube.com/embed/#{@id}?color=white&theme=light\"></iframe>"
25
+ end
26
+
27
+ Liquid::Template.register_tag "youtube", self
28
+ end
29
+
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-plugin-gkpicturetag
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - "@glueckkanja"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fastimage
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mini_magick
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.8'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.8'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ description:
84
+ email:
85
+ - info@glueckkanja.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - LICENSE.txt
91
+ - README.md
92
+ - lib/gkjekyll-picture-tag.rb
93
+ homepage: https://glueckkanja.com
94
+ licenses:
95
+ - Nonstandard
96
+ metadata: {}
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubyforge_project:
113
+ rubygems_version: 2.7.2
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: GK Jekyll Picture Tag
117
+ test_files: []