jekyll-google-photos 1.0.0 → 1.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 +4 -4
- data/Gemfile.lock +0 -2
- data/README.md +13 -10
- data/lib/jekyll-google-photos/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae2cadb34945a246661a9e66b455e065120f7c96
|
|
4
|
+
data.tar.gz: fbc291d9890e4dd111684f816b4b4f88e0cf6f75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d55b36e7a274d0f93f4b5ec9e1fd507c7a3f230bfcb5c55d534b51982c28c55193e1dd44713f4c61af56e3eacafd966c5dbcb49e42a06fec2c6e685629b69238
|
|
7
|
+
data.tar.gz: c890900bf019522d2e759b4f98ae9a2ce713d3c65b8c914daace012b0e4798c11fa7bd7d76cb3d04898ba464cfb3057f6897aa61f58bebe397e3426a6923a62c
|
data/Gemfile.lock
CHANGED
|
@@ -9,7 +9,6 @@ GEM
|
|
|
9
9
|
eventmachine (>= 0.12.9)
|
|
10
10
|
http_parser.rb (~> 0.6.0)
|
|
11
11
|
eventmachine (1.2.7)
|
|
12
|
-
fastimage (2.1.5)
|
|
13
12
|
ffi (1.11.1)
|
|
14
13
|
forwardable-extended (2.6.0)
|
|
15
14
|
http_parser.rb (0.6.0)
|
|
@@ -69,7 +68,6 @@ PLATFORMS
|
|
|
69
68
|
ruby
|
|
70
69
|
|
|
71
70
|
DEPENDENCIES
|
|
72
|
-
fastimage (~> 2.1)
|
|
73
71
|
jekyll (~> 3.7.2)
|
|
74
72
|
jekyll-feed (~> 0.6)
|
|
75
73
|
minima (~> 2.0)
|
data/README.md
CHANGED
|
@@ -6,17 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
# Installing
|
|
8
8
|
|
|
9
|
-
add the following to your
|
|
9
|
+
add the following to your plugins in `_config.yml`:
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
gem 'fastimage'
|
|
11
|
+
- jekyll-google-photos
|
|
13
12
|
```
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
Install the gem using bundle or use the regular gem installation method
|
|
16
15
|
```
|
|
17
|
-
bundle
|
|
16
|
+
bundle add jekyll-google-photos
|
|
18
17
|
```
|
|
19
|
-
Note: Simplified installation is still a WIP
|
|
20
18
|
|
|
21
19
|
You also need to add this plugin to your `_config.yml` file:
|
|
22
20
|
```
|
|
@@ -26,16 +24,21 @@ plugins:
|
|
|
26
24
|
|
|
27
25
|
# Usage:
|
|
28
26
|
```
|
|
29
|
-
{% google_photos <
|
|
27
|
+
{% google_photos <link_to_album> row_height row_height_tablet row_height_phone tablet_max phone_max margin %}
|
|
30
28
|
```
|
|
29
|
+
`row_height`: Row height on the biggest screen (in pixels)
|
|
30
|
+
`row_height_tablet`: Row height on tablets (in pixels)
|
|
31
|
+
`row_height_phone`: Row height on phones (in pixels)
|
|
32
|
+
`tablet_max`: Width below which `row_height_tablet` will be used (in pixels)
|
|
33
|
+
`phone_max`: Width below which `row_height_phone` will be used (in pixels)
|
|
34
|
+
`margin`: space or margin between rows and adjacent photos
|
|
35
|
+
|
|
31
36
|
Example:
|
|
32
37
|
```
|
|
33
|
-
{% google_photos https://photos.app.goo.gl/bhWukds8QVodFU246 %}
|
|
38
|
+
{% google_photos https://photos.app.goo.gl/bhWukds8QVodFU246 300 150 100 1280 400 5 %}
|
|
34
39
|
```
|
|
35
40
|
|
|
36
41
|
# Features to implement
|
|
37
42
|
|
|
38
|
-
* Revamp Grid Layout Algorithm
|
|
39
|
-
* Let users decide how many photos in each row
|
|
40
43
|
* Full-Screen HQ Image View and Slider
|
|
41
44
|
* Do something about Videos
|