m1key_gallery_generator 0.3.4 → 0.3.5
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/README.md +3 -3
- data/lib/m1key_gallery_generator/template.erb +10 -9
- data/lib/m1key_gallery_generator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c30f0fab4231d867a528769930491b5063b90ac6bb161726d41f1e7a0ad4d91d
|
|
4
|
+
data.tar.gz: dfac0c54d3019746349638b950ea05bdb51e88483dd646e1c498befab39e15fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d38fa70b36002dccaa9c467e48d05436fd17b438ca46b941e9df5d87cd4c21674e84724616091d74352dbd1cc9a469b34958d2d4f2f5b87df170a6d7e7aee95b
|
|
7
|
+
data.tar.gz: 5c1acbc7815ec965a5fe5a023c15cb0503e3e9eb0507b2c9b9287cd8986322b46d5f8730036ab038513289b5665edc0bc13589faf64c5218f2aced4ad560b47e
|
data/README.md
CHANGED
|
@@ -74,11 +74,11 @@ Build the gem.
|
|
|
74
74
|
|
|
75
75
|
Install the gem.
|
|
76
76
|
|
|
77
|
-
> gem install m1key_gallery_generator-0.3.
|
|
77
|
+
> gem install m1key_gallery_generator-0.3.5.gem
|
|
78
78
|
|
|
79
79
|
In your gallery directory, have a file called generate.bat that looks like this:
|
|
80
80
|
|
|
81
|
-
> ruby c:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\m1key_gallery_generator-0.3.
|
|
81
|
+
> ruby c:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\m1key_gallery_generator-0.3.5\bin\console . wait_on_error
|
|
82
82
|
|
|
83
83
|
## Development
|
|
84
84
|
|
|
@@ -95,7 +95,7 @@ To build gem:
|
|
|
95
95
|
> gem build m1key_gallery_generator.gemspec
|
|
96
96
|
|
|
97
97
|
To install gem:
|
|
98
|
-
> gem install m1key_gallery_generator-0.3.
|
|
98
|
+
> gem install m1key_gallery_generator-0.3.5.gem
|
|
99
99
|
|
|
100
100
|
To test gem:
|
|
101
101
|
> irb
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8" />
|
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
7
|
-
<title><%= title %> — Photography and Art
|
|
8
|
-
<meta name="description" content="<%= title %> — Photography and
|
|
7
|
+
<title><%= title %> — Photography and Art Portfolio by Michal Huniewicz</title>
|
|
8
|
+
<meta name="description" content="<%= title %> — Photography and art portfolio by Michal Huniewicz" />
|
|
9
9
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
10
10
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
11
11
|
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&display=swap" rel="stylesheet" />
|
|
@@ -38,13 +38,14 @@
|
|
|
38
38
|
"@type": "Person",
|
|
39
39
|
"name": "Michal Huniewicz"
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
"image": [<% photos.each_with_index do |photo, index| %>
|
|
42
|
+
{
|
|
43
|
+
"@type": "ImageObject",
|
|
44
|
+
"contentUrl" : "https://www.m1key.me/photography/<%= slug %>/<%= slug %>_<%= photo.id %>.jpg",
|
|
45
|
+
"caption": "<%= photo.title %>"
|
|
46
|
+
}<% if (index + 1) == photos.size %><% else %>,<% end -%>
|
|
47
|
+
<% end %>
|
|
48
|
+
],
|
|
48
49
|
"description": "<%= title %> — Photography and Art portfolio by Michal Huniewicz"
|
|
49
50
|
}
|
|
50
51
|
</script>
|