m1key_gallery_generator 0.3.17 → 0.3.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cd772c1af6e19c48d082f17536def8be40ea19c7a0b20b8f3c2fb1c5d8bdee2
4
- data.tar.gz: fb6758969ffce21f3369210c82ec6f68704d23701dc79e48fe0c212aace956a8
3
+ metadata.gz: a060930cf85d27181ce8656ea8b6fc724fa7eedc1a4b415ded614baac3a98bf0
4
+ data.tar.gz: 25ba0be71190c5898423fc82795d470df959b86240c98bb494951f548f5079b9
5
5
  SHA512:
6
- metadata.gz: 75bd61dcc687aea0ce3fd4ab292d9a1c6202da5c1d15685883920a1b8189259ee015da02064811dd1576e13fb3d9ec839ca0948a276b18980bf213e4dbea88e1
7
- data.tar.gz: 0e54f68eaa92ddac99be88734f54cf1616c92391c148b389a754ccf607f6d9f230cccc67103bd41921b1ba32ad466878b7a3f7a0b253a6181e2bc2ea0b304772
6
+ metadata.gz: a3400b4a3fbe6ff5244b654928934e537b6e48f286b0acc94bb5797bdf3e394ffc48308e2d799ecaf037cd81d3d4c178194add7cd8a0cf939f78f27ab79f0dd1
7
+ data.tar.gz: ab0d4e7e8b608bc1fab49abace7181ca458ab539813c04abfe18d470b74216ca8e89c13ee7473b6ad8df9fa2c167bc0f5cddcb0d98370458c61638a0d458b00f
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.17.gem
77
+ > gem install m1key_gallery_generator-0.3.19.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.17\bin\console . wait_on_error
81
+ > ruby c:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\m1key_gallery_generator-0.3.19\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.17.gem
98
+ > gem install m1key_gallery_generator-0.3.19.gem
99
99
 
100
100
  To test gem:
101
101
  > irb
@@ -6,26 +6,42 @@
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1" />
7
7
  <title><%= title %> &mdash; Photography and Art Portfolio by Michal Huniewicz</title>
8
8
  <meta name="description" content="<%= blurb %>" />
9
- <link rel="canonical" href="https://www.m1key.me/<%= genre %>/<%= slug %>" />
9
+ <meta name="author" content="Michal Huniewicz" />
10
+ <meta name="robots" content="index, follow" />
11
+ <meta name="referrer" content="strict-origin-when-cross-origin" />
12
+ <link rel="canonical" href="https://www.m1key.me/<%= genre %>/<%= slug %>/" />
13
+
10
14
  <link rel="preconnect" href="https://fonts.googleapis.com" />
11
15
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
12
16
  <link rel="dns-prefetch" href="https://fonts.googleapis.com" />
13
17
  <link rel="dns-prefetch" href="https://fonts.gstatic.com" />
14
- <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&display=swap" rel="stylesheet" />
18
+
15
19
  <link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;500;600;700&display=swap"
16
20
  rel="preload" as="style" />
17
21
  <link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;500;600;700&display=swap"
18
22
  rel="stylesheet" />
23
+ <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&display=swap" rel="stylesheet" />
24
+
19
25
  <link rel="stylesheet" href="../../styles/base_responsive.css" />
20
- <link rel="icon" href="../../images/icon.ico" />
21
26
 
22
- <meta property="og:locale" content="en_US" />
27
+ <!-- Main favicon for modern browsers -->
28
+ <link rel="icon" href="../../favicon-dark.svg" type="image/svg+xml" media="(prefers-color-scheme: dark)" />
29
+ <link rel="icon" href="../../favicon.svg" type="image/svg+xml" media="(prefers-color-scheme: light)" />
30
+ <!-- PNG fallback for maximum compatibility -->
31
+ <link rel="icon" href="../../favicon-48-dark.png" sizes="48x48" type="image/png" media="(prefers-color-scheme: dark)" />
32
+ <link rel="icon" href="../../favicon-48.png" sizes="48x48" type="image/png" media="(prefers-color-scheme: light)" />
33
+
34
+ <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
35
+ <meta name="theme-color" content="#1a1a1a" media="(prefers-color-scheme: dark)" />
36
+
37
+ <meta property="og:locale" content="en_GB" />
23
38
  <meta property="og:type" content="website" />
24
39
  <meta property="og:title" content="<%= title %> by Michal Huniewicz" />
25
40
  <meta property="og:description" content="<%= blurb %>" />
26
- <meta property="og:url" content="https://www.m1key.me/<%= genre %>/<%= slug %>" />
41
+ <meta property="og:url" content="https://www.m1key.me/<%= genre %>/<%= slug %>/" />
27
42
  <meta property="og:image" content="https://www.m1key.me/<%= genre %>/<%= slug %>/<%= slug %>_01.jpg" />
28
43
  <meta property="og:image:alt" content="<%= title %> by Michal Huniewicz" />
44
+ <meta property="og:site_name" content="M1key.me" />
29
45
 
30
46
  <meta name="twitter:card" content="summary_large_image" />
31
47
  <meta name="twitter:title" content="<%= title %> by Michal Huniewicz" />
@@ -51,15 +67,15 @@
51
67
  "name": "Michal Huniewicz"
52
68
  },
53
69
  "image": [<% photos.each_with_index do |photo, index| %>
54
- {
70
+ {
55
71
  "@type": "ImageObject",
56
72
  "contentUrl" : "https://www.m1key.me/<%= genre %>/<%= slug %>/<%= slug %>_<%= photo.id %>.jpg",
57
73
  "caption": "<%= HTMLEntities.new.decode(photo.title) %>",
58
74
  "width": <%= photo.metadata.width %>,
59
75
  "height": <%= photo.metadata.height %>
60
- }<% if (index + 1) == photos.size %><% else %>,<% end -%>
61
- <% end %>
62
- ],
76
+ }<% if (index + 1) == photos.size %><% else %>,<% end -%>
77
+ <% end %>
78
+ ],
63
79
  "description": "<%= blurb %>",
64
80
  "keywords": "photography, art, portfolio, Michal Huniewicz, m1key.me, <%= title %>"
65
81
  }
@@ -123,7 +139,7 @@
123
139
  </a>
124
140
  <figcaption class="visually-hidden">Map showing <%= map_title %> location (opens in OpenStreetMap)</figcaption>
125
141
  </figure><% end %>
126
- <% photos.each_with_index do |photo, index| %>
142
+ <% photos.each_with_index do |photo, index| %>
127
143
  <article class="photo" id="<%= photo.id %>">
128
144
  <header>
129
145
  <h2 class="title"><a href="#<%= photo.id %>" title="Link to this photo"><%= photo.title %></a></h2>
@@ -137,12 +153,12 @@
137
153
  </figcaption>
138
154
  </figure>
139
155
  </article>
140
- <% end -%>
156
+ <% end -%>
141
157
  <% if sources %>
142
158
  <details class="sources" id="sources">
143
159
  <summary>Sources</summary>
144
160
  <ul class="smallprint"><% sources.each_with_index do |source, index| %>
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 %>
161
+ <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
162
  </ul>
147
163
  </details>
148
164
  <% end -%>
@@ -1,3 +1,3 @@
1
1
  module M1keyGalleryGenerator
2
- VERSION = '0.3.17'
2
+ VERSION = '0.3.19'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m1key_gallery_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.17
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Huniewicz