astro-accelerator 5.9.0 → 5.9.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/astro.config.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
1
3
|
import mdx from '@astrojs/mdx';
|
|
2
4
|
import remarkDirective from 'remark-directive';
|
|
3
5
|
import { defineConfig } from 'astro/config';
|
|
4
6
|
import { defaultLayout } from '/src/themes/accelerator/utilities/default-layout.mjs';
|
|
5
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
attributeMarkdown,
|
|
9
|
+
wrapTables,
|
|
10
|
+
} from '/src/themes/accelerator/utilities/custom-markdown.mjs';
|
|
6
11
|
|
|
7
12
|
// https://astro.build/config
|
|
8
13
|
export default defineConfig({
|
|
@@ -13,10 +18,11 @@ export default defineConfig({
|
|
|
13
18
|
defaultLayout,
|
|
14
19
|
remarkDirective,
|
|
15
20
|
attributeMarkdown,
|
|
16
|
-
wrapTables
|
|
21
|
+
wrapTables,
|
|
17
22
|
],
|
|
23
|
+
closeSelfClosing: false,
|
|
18
24
|
extendDefaultPlugins: true,
|
|
19
25
|
trailingSlash: 'always',
|
|
20
26
|
},
|
|
21
|
-
server: { port: 3000, host: true},
|
|
27
|
+
server: { port: 3000, host: true },
|
|
22
28
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.9.
|
|
2
|
+
"version": "5.9.3",
|
|
3
3
|
"author": "Steve Fenton",
|
|
4
4
|
"name": "astro-accelerator",
|
|
5
5
|
"description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/Steve-Fenton/astro-accelerator"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"refresh": "pnpm update && pnpm test",
|
|
23
|
+
"refresh": "npm version patch && pnpm update && pnpm test",
|
|
24
24
|
"img": "node --no-experimental-fetch ./src/themes/accelerator/utilities/img.mjs",
|
|
25
25
|
"dev": "node --no-experimental-fetch ./src/themes/accelerator/utilities/img.mjs && astro dev",
|
|
26
26
|
"stats": "node --no-experimental-fetch ./src/themes/accelerator/utilities/stats.mjs",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@astrojs/mdx": "^4.3.0",
|
|
37
|
-
"astro": "^5.
|
|
38
|
-
"astro-accelerator-utils": "^0.3.
|
|
37
|
+
"astro": "^5.10.1",
|
|
38
|
+
"astro-accelerator-utils": "^0.3.45",
|
|
39
39
|
"cspell": "^8.19.4",
|
|
40
40
|
"csv": "^6.3.11",
|
|
41
|
-
"glob": "^11.0.
|
|
41
|
+
"glob": "^11.0.3",
|
|
42
42
|
"hast-util-from-selector": "^3.0.1",
|
|
43
43
|
"html-to-text": "^9.0.5",
|
|
44
44
|
"keyword-extractor": "^0.0.28",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"sharp": "^0.33.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@playwright/test": "^1.
|
|
51
|
+
"@playwright/test": "^1.53.1"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|
|
54
54
|
".npmrc",
|
|
@@ -43,46 +43,46 @@ stats.stop();
|
|
|
43
43
|
<head>
|
|
44
44
|
<meta charset="utf-8" />
|
|
45
45
|
<title>{ title }</title>
|
|
46
|
-
<meta name="robots" content={ 'max-image-preview:large, ' + robots }
|
|
47
|
-
<meta name="keywords" content={ frontmatter.keywords }
|
|
48
|
-
<meta name="description" content={ frontmatter.description }
|
|
49
|
-
<link rel="stylesheet" href={ SITE.subfolder + '/css/vars.css' }
|
|
50
|
-
<link rel="stylesheet" href={ SITE.subfolder + '/css/main.css' }
|
|
46
|
+
<meta name="robots" content={ 'max-image-preview:large, ' + robots }>
|
|
47
|
+
<meta name="keywords" content={ frontmatter.keywords }>
|
|
48
|
+
<meta name="description" content={ frontmatter.description }>
|
|
49
|
+
<link rel="stylesheet" href={ SITE.subfolder + '/css/vars.css' }>
|
|
50
|
+
<link rel="stylesheet" href={ SITE.subfolder + '/css/main.css' }>
|
|
51
51
|
{autoMeta('viewport') &&
|
|
52
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"
|
|
52
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
|
53
53
|
}
|
|
54
54
|
{autoMeta('format-detection') &&
|
|
55
|
-
<meta name="format-detection" content="telephone=no"
|
|
55
|
+
<meta name="format-detection" content="telephone=no">
|
|
56
56
|
}
|
|
57
57
|
{autoMeta('theme-color') &&
|
|
58
|
-
<meta name="theme-color" content={ SITE.themeColor }
|
|
58
|
+
<meta name="theme-color" content={ SITE.themeColor }>
|
|
59
59
|
}
|
|
60
60
|
{autoMeta('canonical') &&
|
|
61
|
-
<link rel="canonical" href={ canonicalURL }
|
|
61
|
+
<link rel="canonical" href={ canonicalURL }>
|
|
62
62
|
}
|
|
63
63
|
{SITE.feedUrl &&
|
|
64
|
-
<link rel="alternate" type="application/atom+xml" title={ SITE.title } href={ SITE.feedUrl }
|
|
64
|
+
<link rel="alternate" type="application/atom+xml" title={ SITE.title } href={ SITE.feedUrl }>
|
|
65
65
|
}
|
|
66
|
-
<link rel="alternate" href={ SITE.subfolder + '/sitemap.xml' } type="application/rss+xml"
|
|
67
|
-
<link rel="shortcut icon" href={ SITE.subfolder + '/icons/favicon.ico' } type="image/x-icon"
|
|
68
|
-
<link rel="apple-touch-icon" href={ SITE.subfolder + '/icons/apple-touch-icon.png' }
|
|
69
|
-
<meta property="og:type" content="website"
|
|
70
|
-
<meta property="og:url" content={ canonicalURL }
|
|
71
|
-
<meta property="og:title" content={ socialTitle }
|
|
72
|
-
<meta property="og:description" content={ frontmatter.description }
|
|
73
|
-
<meta property="og:image" content={ canonicalImageSrc }
|
|
74
|
-
<meta property="og:image:alt" content={ imageAlt }
|
|
75
|
-
<meta name="twitter:card" content="summary_large_image"
|
|
76
|
-
<meta name="twitter:title" content={ socialTitle }
|
|
77
|
-
<meta name="twitter:description" content={ frontmatter.description }
|
|
78
|
-
<meta name="twitter:image" content={ canonicalImageSrc }
|
|
79
|
-
<meta name="twitter:image:alt" content={ imageAlt }
|
|
80
|
-
<meta name="view-transition" content="same-origin"
|
|
66
|
+
<link rel="alternate" href={ SITE.subfolder + '/sitemap.xml' } type="application/rss+xml">
|
|
67
|
+
<link rel="shortcut icon" href={ SITE.subfolder + '/icons/favicon.ico' } type="image/x-icon">
|
|
68
|
+
<link rel="apple-touch-icon" href={ SITE.subfolder + '/icons/apple-touch-icon.png' }>
|
|
69
|
+
<meta property="og:type" content="website">
|
|
70
|
+
<meta property="og:url" content={ canonicalURL }>
|
|
71
|
+
<meta property="og:title" content={ socialTitle }>
|
|
72
|
+
<meta property="og:description" content={ frontmatter.description }>
|
|
73
|
+
<meta property="og:image" content={ canonicalImageSrc }>
|
|
74
|
+
<meta property="og:image:alt" content={ imageAlt }>
|
|
75
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
76
|
+
<meta name="twitter:title" content={ socialTitle }>
|
|
77
|
+
<meta name="twitter:description" content={ frontmatter.description }>
|
|
78
|
+
<meta name="twitter:image" content={ canonicalImageSrc }>
|
|
79
|
+
<meta name="twitter:image:alt" content={ imageAlt }>
|
|
80
|
+
<meta name="view-transition" content="same-origin">
|
|
81
81
|
{pageMeta.map(m =>
|
|
82
|
-
<meta name={ m.name } content={ m.content }
|
|
82
|
+
<meta name={ m.name } content={ m.content }>
|
|
83
83
|
)}
|
|
84
84
|
{authorMeta.map(m =>
|
|
85
|
-
<meta name={ m.name } content={ m.content }
|
|
85
|
+
<meta name={ m.name } content={ m.content }>
|
|
86
86
|
)}
|
|
87
87
|
<Fragment set:html={ HEADER_SCRIPTS }></Fragment>
|
|
88
88
|
</head>
|