add canonical URLs, prefix metadata with _
s-ol
6 months ago
123 | 123 |
else
|
124 | 124 |
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\" />"
|
125 | 125 |
do
|
126 | |
local desc = self:get('description: text/plain')
|
|
126 |
local desc = self:get('_description: text/plain')
|
127 | 127 |
if desc then
|
128 | 128 |
meta = meta .. "\n <meta property=\"og:description\" content=" .. tostring(e(desc)) .. " />\n <meta name=\"description\" content=" .. tostring(e(desc)) .. " />"
|
129 | 129 |
end
|
130 | 130 |
end
|
131 | 131 |
do
|
132 | |
local desc = self:get('keywords: text/plain')
|
|
132 |
local desc = self:get('_keywords: text/plain')
|
133 | 133 |
if desc then
|
134 | 134 |
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)) .. " />"
|
135 | 141 |
end
|
136 | 142 |
end
|
137 | 143 |
end
|
106 | 106 |
<meta property=\"og:url\" content=\"https://hw.s-ol.nu#{@path}/\" />
|
107 | 107 |
<meta property=\"og:site_name\" content=\"mmm\" />"
|
108 | 108 |
|
109 | |
if desc = @get 'description: text/plain'
|
|
109 |
if desc = @get '_description: text/plain'
|
110 | 110 |
meta ..= "
|
111 | 111 |
<meta property=\"og:description\" content=#{e desc} />
|
112 | 112 |
<meta name=\"description\" content=#{e desc} />"
|
113 | 113 |
|
114 | |
if desc = @get 'keywords: text/plain'
|
|
114 |
if desc = @get '_keywords: text/plain'
|
115 | 115 |
meta ..= "
|
116 | 116 |
<meta name=\"keywords\" content=#{e desc} />"
|
|
117 |
|
|
118 |
if url = @get '_canonical: URL'
|
|
119 |
meta ..= "
|
|
120 |
<link rel=\"canonical\" href=#{e url} />"
|
117 | 121 |
|
118 | 122 |
meta
|
119 | 123 |
|
|
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
|
0x33.board/description: text$plain
less
more
0 | |
the 0x33.board is an isomorphic MIDI key controller with 48 hexagonal keys
|
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
|
0xC.pad/description: text$plain
less
more
0 | |
the 0xC.pad is a macropad with 12 hexagonal keys
|
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
|
HEX-keycaps/description: text$plain
less
more
0 | |
documentation for the HEX keycap profile
|
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 | |
low profile hexagon keyboards
|
0 | |
hw.s-ol.nu, 0xC.pad, 0x33.board, hexagon, keyboards
|