git.s-ol.nu hw/hw.s-ol.nu / fa254d4
add canonical URLs, prefix metadata with _ s-ol 22 days ago
21 changed file(s) with 25 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
123123 else
124124 meta = meta .. "\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n <meta property=\"og:title\" content=" .. tostring(e(title_text)) .. " />\n <meta property=\"og:type\" content=\"website\" />\n <meta property=\"og:url\" content=\"https://hw.s-ol.nu" .. tostring(self.path) .. "/\" />\n <meta property=\"og:site_name\" content=\"mmm\" />"
125125 do
126 local desc = self:get('description: text/plain')
126 local desc = self:get('_description: text/plain')
127127 if desc then
128128 meta = meta .. "\n <meta property=\"og:description\" content=" .. tostring(e(desc)) .. " />\n <meta name=\"description\" content=" .. tostring(e(desc)) .. " />"
129129 end
130130 end
131131 do
132 local desc = self:get('keywords: text/plain')
132 local desc = self:get('_keywords: text/plain')
133133 if desc then
134134 meta = meta .. "\n <meta name=\"keywords\" content=" .. tostring(e(desc)) .. " />"
135 end
136 end
137 do
138 local url = self:get('_canonical: URL')
139 if url then
140 meta = meta .. "\n <link rel=\"canonical\" href=" .. tostring(e(url)) .. " />"
135141 end
136142 end
137143 end
106106 <meta property=\"og:url\" content=\"https://hw.s-ol.nu#{@path}/\" />
107107 <meta property=\"og:site_name\" content=\"mmm\" />"
108108
109 if desc = @get 'description: text/plain'
109 if desc = @get '_description: text/plain'
110110 meta ..= "
111111 <meta property=\"og:description\" content=#{e desc} />
112112 <meta name=\"description\" content=#{e desc} />"
113113
114 if desc = @get 'keywords: text/plain'
114 if desc = @get '_keywords: text/plain'
115115 meta ..= "
116116 <meta name=\"keywords\" content=#{e desc} />"
117
118 if url = @get '_canonical: URL'
119 meta ..= "
120 <link rel=\"canonical\" href=#{e url} />"
117121
118122 meta
119123
0 https://s-ol.nu/0x33.board
0 the 0x33.board is an isomorphic MIDI key controller with 48 hexagonal keys
0 0x33.board, isomorphic, MIDI, controller, hexagonal, hex keys, USB
+0
-1
0x33.board/description: text$plain less more
0 the 0x33.board is an isomorphic MIDI key controller with 48 hexagonal keys
+0
-1
0x33.board/keywords: text$plain less more
0 0x33.board, isomorphic, MIDI, controller, hexagonal, hex keys, USB
0 https://s-ol.nu/0xC.pad
0 the 0xC.pad is a macropad with 12 hexagonal keys
0 0xC.pad, hexagonal keys, macropad, hex keys, hexpad
+0
-1
0xC.pad/description: text$plain less more
0 the 0xC.pad is a macropad with 12 hexagonal keys
+0
-1
0xC.pad/keywords: text$plain less more
0 0xC.pad, hexagonal keys, macropad, hex keys, hexpad
0 https://s-ol.nu/hex-caps
0 documentation for the HEX keycap profile
0 HEX keys, HEX keycaps, hex, hexagonal, hexagon, keycaps, kailh choc, choc
+0
-1
HEX-keycaps/description: text$plain less more
0 documentation for the HEX keycap profile
+0
-1
HEX-keycaps/keywords: text$plain less more
0 HEX keys, HEX keycaps, hex, hexagonal, hexagon, keycaps, kailh choc, choc
0 low profile hexagon keyboards
0 hw.s-ol.nu, 0xC.pad, 0x33.board, hexagon, keyboards
+0
-1
description: text$plain less more
0 low profile hexagon keyboards
+0
-1
keywords: text$plain less more
0 hw.s-ol.nu, 0xC.pad, 0x33.board, hexagon, keyboards