@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abreen/tada",
3
- "version": "1.11.0",
3
+ "version": "1.11.3",
4
4
  "type": "module",
5
5
  "description": "A static site generator",
6
6
  "license": "MIT",
package/src/_base.scss CHANGED
@@ -19,7 +19,7 @@ h4,
19
19
  h5,
20
20
  h6 {
21
21
  font-family: var(--heading-font);
22
- line-height: 1.3;
22
+ line-height: var(--heading-line-height);
23
23
  -webkit-break-after: avoid;
24
24
  break-after: avoid;
25
25
  }
@@ -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
- if (!newDoc.querySelector('meta[name="generator"][content="Tada"]')) {
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
  }
@@ -129,6 +129,7 @@ header {
129
129
 
130
130
  ol a .title {
131
131
  font-weight: 500;
132
+ line-height: var(--heading-line-height);
132
133
  }
133
134
 
134
135
  ol a .title.code-page code {
@@ -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;
@@ -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" />