@abreen/tada 1.11.0 → 1.11.3
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.
- package/package.json +1 -1
- package/src/_base.scss +1 -1
- package/src/navigate/runtime.ts +7 -1
- package/src/search/style.scss +1 -0
- package/templates/_theme.scss +1 -0
- package/templates/_top.html +1 -1
package/package.json
CHANGED
package/src/_base.scss
CHANGED
package/src/navigate/runtime.ts
CHANGED
|
@@ -219,7 +219,13 @@ export async function navigateToUrl(
|
|
|
219
219
|
.DOMParser;
|
|
220
220
|
const parser = new DOMParserCtor();
|
|
221
221
|
const newDoc = parser.parseFromString(html, 'text/html');
|
|
222
|
-
|
|
222
|
+
const currentGenerator = document
|
|
223
|
+
.querySelector('meta[name="generator"]')
|
|
224
|
+
?.getAttribute('content');
|
|
225
|
+
const newGenerator = newDoc
|
|
226
|
+
.querySelector('meta[name="generator"]')
|
|
227
|
+
?.getAttribute('content');
|
|
228
|
+
if (!currentGenerator || !newGenerator || newGenerator !== currentGenerator) {
|
|
223
229
|
window.location.href = url;
|
|
224
230
|
return;
|
|
225
231
|
}
|
package/src/search/style.scss
CHANGED
package/templates/_theme.scss
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
41
41
|
'Segoe UI Symbol';
|
|
42
42
|
--heading-font: var(--font);
|
|
43
|
+
--heading-line-height: 1.3;
|
|
43
44
|
--mono-font: 'Google Sans Code', 'Consolas', 'Courier', monospace;
|
|
44
45
|
--font-size: 16px;
|
|
45
46
|
--font-size-smaller: 15px;
|
package/templates/_top.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<meta name="apple-mobile-web-app-title" content="<%= site.symbol %>">
|
|
19
19
|
<meta name="mobile-web-app-capable" content="yes">
|
|
20
20
|
<% } %>
|
|
21
|
-
<meta name="generator" content="Tada" />
|
|
21
|
+
<meta name="generator" content="Tada <%= tadaVersion %>" />
|
|
22
22
|
<meta charset="UTF-8" />
|
|
23
23
|
<meta http-equiv="cache-control" content="no-cache" />
|
|
24
24
|
<meta http-equiv="expires" content="0" />
|