m1key_gallery_generator 0.3.17 → 0.3.18
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 +7 -7
- 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: 2e0e45ad657eb87c9ea82179edb3cba400410989b360ebf0ede7602aaf7d2cfd
|
|
4
|
+
data.tar.gz: ed2ededcb2880116e9ce1aea00bb3143c9e92a567a1e0ec16c44be4a14498b43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65839c427e7aae1565c2f12d7163adfcbfd99d5e7edd369265dc904a0275a5a5809fe484eb93cd6f1d0b2b27a51b44b7214d72c21af5fc6798c3ac9f04dd6f32
|
|
7
|
+
data.tar.gz: 724b33ee318b25eb25d53ebe24fda147661cbacad398d404c34be67e4fc524de6c58b2fc5e20d7de70516d80a0033f4a852da6eafa1c4ab431baf1f0b168361a
|
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.18.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.18\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.18.gem
|
|
99
99
|
|
|
100
100
|
To test gem:
|
|
101
101
|
> irb
|
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
"name": "Michal Huniewicz"
|
|
52
52
|
},
|
|
53
53
|
"image": [<% photos.each_with_index do |photo, index| %>
|
|
54
|
-
|
|
54
|
+
{
|
|
55
55
|
"@type": "ImageObject",
|
|
56
56
|
"contentUrl" : "https://www.m1key.me/<%= genre %>/<%= slug %>/<%= slug %>_<%= photo.id %>.jpg",
|
|
57
57
|
"caption": "<%= HTMLEntities.new.decode(photo.title) %>",
|
|
58
58
|
"width": <%= photo.metadata.width %>,
|
|
59
59
|
"height": <%= photo.metadata.height %>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
}<% if (index + 1) == photos.size %><% else %>,<% end -%>
|
|
61
|
+
<% end %>
|
|
62
|
+
],
|
|
63
63
|
"description": "<%= blurb %>",
|
|
64
64
|
"keywords": "photography, art, portfolio, Michal Huniewicz, m1key.me, <%= title %>"
|
|
65
65
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</a>
|
|
124
124
|
<figcaption class="visually-hidden">Map showing <%= map_title %> location (opens in OpenStreetMap)</figcaption>
|
|
125
125
|
</figure><% end %>
|
|
126
|
-
|
|
126
|
+
<% photos.each_with_index do |photo, index| %>
|
|
127
127
|
<article class="photo" id="<%= photo.id %>">
|
|
128
128
|
<header>
|
|
129
129
|
<h2 class="title"><a href="#<%= photo.id %>" title="Link to this photo"><%= photo.title %></a></h2>
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
</figcaption>
|
|
138
138
|
</figure>
|
|
139
139
|
</article>
|
|
140
|
-
|
|
140
|
+
<% end -%>
|
|
141
141
|
<% if sources %>
|
|
142
142
|
<details class="sources" id="sources">
|
|
143
143
|
<summary>Sources</summary>
|
|
144
144
|
<ul class="smallprint"><% sources.each_with_index do |source, index| %>
|
|
145
|
-
|
|
145
|
+
<li><%= index + 1 %>: <a href="<%= source %>" rel="noopener noreferrer" class="nav-link"><% if source.length > 100 %><%= source[0..50] %>[...]<%= source[-30..-1] %><% else %><%= source %><% end -%></a></li><% end %>
|
|
146
146
|
</ul>
|
|
147
147
|
</details>
|
|
148
148
|
<% end -%>
|