jekyll-google-photos 1.2.0 → 1.3
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 +4 -4
- data/Gemfile.lock +15 -17
- data/README.md +20 -0
- data/_posts/2018-02-22-welcome-to-jekyll.markdown +1 -1
- data/lib/jekyll-google-photos/tag.rb +7 -4
- data/lib/jekyll-google-photos/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25b711aaf893e921e82406ef918258c1078f365e
|
|
4
|
+
data.tar.gz: a397fa11d99a64bce09f875d9e127fa51cd921f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f3df9f6572bce4858ae7739ee5d758c8e111b821e3a526e80b05f024946968c6d2112b15b35ff30b5c31a017dfbf4f703a2da7020c9616503d3842990415148
|
|
7
|
+
data.tar.gz: 1959d5528f6e020b2103235236722e26c710fadd3ab64814c5687bc1acc27b059c1fe61b8bf48f08fe2604f7255b66e56c6b13d15949522ba65896a9f3c205e5
|
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
addressable (2.
|
|
5
|
-
public_suffix (>= 2.0.2, <
|
|
4
|
+
addressable (2.7.0)
|
|
5
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
6
6
|
colorator (1.1.0)
|
|
7
|
-
concurrent-ruby (1.1.
|
|
7
|
+
concurrent-ruby (1.1.6)
|
|
8
8
|
em-websocket (0.5.1)
|
|
9
9
|
eventmachine (>= 0.12.9)
|
|
10
10
|
http_parser.rb (~> 0.6.0)
|
|
11
11
|
eventmachine (1.2.7)
|
|
12
|
-
ffi (1.
|
|
12
|
+
ffi (1.12.2)
|
|
13
13
|
forwardable-extended (2.6.0)
|
|
14
14
|
http_parser.rb (0.6.0)
|
|
15
15
|
i18n (0.9.5)
|
|
@@ -27,7 +27,7 @@ GEM
|
|
|
27
27
|
pathutil (~> 0.9)
|
|
28
28
|
rouge (>= 1.7, < 4)
|
|
29
29
|
safe_yaml (~> 1.0)
|
|
30
|
-
jekyll-feed (0.
|
|
30
|
+
jekyll-feed (0.13.0)
|
|
31
31
|
jekyll (>= 3.7, < 5.0)
|
|
32
32
|
jekyll-sass-converter (1.5.2)
|
|
33
33
|
sass (~> 3.4)
|
|
@@ -37,26 +37,24 @@ GEM
|
|
|
37
37
|
listen (~> 3.0)
|
|
38
38
|
kramdown (1.17.0)
|
|
39
39
|
liquid (4.0.3)
|
|
40
|
-
listen (3.1
|
|
41
|
-
rb-fsevent (~> 0.
|
|
42
|
-
rb-inotify (~> 0.9, >= 0.9.
|
|
43
|
-
ruby_dep (~> 1.2)
|
|
40
|
+
listen (3.2.1)
|
|
41
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
42
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
44
43
|
mercenary (0.3.6)
|
|
45
44
|
mini_portile2 (2.4.0)
|
|
46
|
-
minima (2.5.
|
|
47
|
-
jekyll (
|
|
45
|
+
minima (2.5.1)
|
|
46
|
+
jekyll (>= 3.5, < 5.0)
|
|
48
47
|
jekyll-feed (~> 0.9)
|
|
49
48
|
jekyll-seo-tag (~> 2.1)
|
|
50
|
-
nokogiri (1.10.
|
|
49
|
+
nokogiri (1.10.9)
|
|
51
50
|
mini_portile2 (~> 2.4.0)
|
|
52
51
|
pathutil (0.16.2)
|
|
53
52
|
forwardable-extended (~> 2.6)
|
|
54
|
-
public_suffix (
|
|
53
|
+
public_suffix (4.0.3)
|
|
55
54
|
rb-fsevent (0.10.3)
|
|
56
|
-
rb-inotify (0.10.
|
|
55
|
+
rb-inotify (0.10.1)
|
|
57
56
|
ffi (~> 1.0)
|
|
58
|
-
rouge (3.
|
|
59
|
-
ruby_dep (1.5.0)
|
|
57
|
+
rouge (3.16.0)
|
|
60
58
|
safe_yaml (1.0.5)
|
|
61
59
|
sass (3.7.4)
|
|
62
60
|
sass-listen (~> 4.0.0)
|
|
@@ -75,4 +73,4 @@ DEPENDENCIES
|
|
|
75
73
|
tzinfo-data
|
|
76
74
|
|
|
77
75
|
BUNDLED WITH
|
|
78
|
-
2.0.
|
|
76
|
+
2.0.2
|
data/README.md
CHANGED
|
@@ -33,6 +33,12 @@ Example:
|
|
|
33
33
|
```
|
|
34
34
|
{% google_photos https://photos.app.goo.gl/bhWukds8QVodFU246 800 %}
|
|
35
35
|
```
|
|
36
|
+
or using variables/front matter
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
{% google_photos post.gallery_url 800 %}
|
|
40
|
+
```
|
|
41
|
+
|
|
36
42
|
#### Note
|
|
37
43
|
You can use `0` to get original quality image.
|
|
38
44
|
|
|
@@ -105,6 +111,20 @@ https://lh3.googleusercontent.com/p/AF....VnnY<b>=w256-h256-c</b>
|
|
|
105
111
|
#### Note
|
|
106
112
|
You can use `=w0-h0` for unaltered image quality.
|
|
107
113
|
|
|
114
|
+
# Error using this plugin with Github pages?
|
|
115
|
+
|
|
116
|
+
A lot of users are experiencing issues when using this plugin with Github pages.
|
|
117
|
+
|
|
118
|
+
#### Reason
|
|
119
|
+
|
|
120
|
+
Github only supports a limited number of Ruby gems.
|
|
121
|
+
|
|
122
|
+
https://stackoverflow.com/questions/53215356/jekyll-how-to-use-custom-plugins-with-github-pages
|
|
123
|
+
|
|
124
|
+
#### Solution
|
|
125
|
+
|
|
126
|
+
- Try building locally and then push contents of `_site` to your repository.
|
|
127
|
+
- Try other static site builders. Gitlab pages is a good alternative.
|
|
108
128
|
|
|
109
129
|
# Features to implement
|
|
110
130
|
|
|
@@ -5,7 +5,7 @@ date: 2018-02-22 18:29:32 +0000
|
|
|
5
5
|
categories: jekyll update
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
{% google_photos https://photos.app.goo.gl/bhWukds8QVodFU246
|
|
8
|
+
{% google_photos https://photos.app.goo.gl/bhWukds8QVodFU246 800 %}
|
|
9
9
|
|
|
10
10
|
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
|
11
11
|
|
|
@@ -8,10 +8,8 @@ module JekyllGooglePhotos
|
|
|
8
8
|
def initialize(tagName, args, tokens)
|
|
9
9
|
super
|
|
10
10
|
args = args.split(" ")
|
|
11
|
-
|
|
11
|
+
@albumUrl = args[0]
|
|
12
12
|
@maxWidth = args[1]
|
|
13
|
-
@imgLinks = getImageLinks(url)
|
|
14
|
-
@dom = createDOM()
|
|
15
13
|
end
|
|
16
14
|
|
|
17
15
|
def getImageLinks(url)
|
|
@@ -337,7 +335,12 @@ module JekyllGooglePhotos
|
|
|
337
335
|
end
|
|
338
336
|
|
|
339
337
|
def render(context)
|
|
340
|
-
@
|
|
338
|
+
if @albumUrl[/https?:\/\/[\S]+/]
|
|
339
|
+
@imgLinks = getImageLinks(@albumUrl)
|
|
340
|
+
else
|
|
341
|
+
@imgLinks = getImageLinks("#{context[@albumUrl.strip]}")
|
|
342
|
+
end
|
|
343
|
+
createDOM()
|
|
341
344
|
end
|
|
342
345
|
end
|
|
343
346
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-google-photos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: '1.3'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chirag Arora
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|