astro-accelerator 7.0.10 → 7.1.11

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,5 +1,5 @@
1
1
  {
2
- "version": "7.0.10",
2
+ "version": "7.1.11",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -51,7 +51,7 @@
51
51
  "@playwright/test": "^1.61.1",
52
52
  "cspell": "^10.0.1",
53
53
  "glob": "^13.0.6",
54
- "linkinator": "^8.0.0"
54
+ "linkinator": "^8.0.2"
55
55
  },
56
56
  "files": [
57
57
  "pnpm-workspace.yaml",
@@ -95,4 +95,4 @@
95
95
  "zod@<=3.22.2": ">=3.22.3"
96
96
  }
97
97
  }
98
- }
98
+ }
@@ -1,23 +1,35 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { PostOrdering, Accelerator } from 'astro-accelerator-utils';
5
- import { SITE } from '@config';
4
+ import { PostOrdering, Accelerator } from "astro-accelerator-utils";
5
+ import { SITE } from "@config";
6
+ import pkg from "package.json" with { type: "json" };
6
7
 
7
8
  // Logic
8
9
  const accelerator = new Accelerator(SITE);
9
10
 
10
11
  const allPages = accelerator.posts.all();
11
- const missingBanner = allPages.filter(p => p.frontmatter.bannerImage == null && p.frontmatter.layout != 'src/layouts/Redirect.astro');
12
+ const missingBanner = allPages.filter(
13
+ (p) =>
14
+ p.frontmatter.bannerImage == null &&
15
+ p.frontmatter.layout != "src/layouts/Redirect.astro",
16
+ );
12
17
  const pageCount = missingBanner.length;
13
- const pages = missingBanner.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.min(50, pageCount));
18
+ const pages = missingBanner
19
+ .sort(PostOrdering.sortByPubDateDesc)
20
+ .slice(0, Math.min(50, pageCount));
14
21
  ---
22
+
15
23
  <!doctype html>
16
24
  <html>
17
25
  <head>
18
26
  <meta charset="utf-8" />
19
27
  <title>Missing banners</title>
20
- <link rel="stylesheet" href="/css/report.css" />
28
+ <link
29
+ rel="stylesheet"
30
+ href={SITE.subfolder +
31
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
32
+ />
21
33
  </head>
22
34
  <body>
23
35
  <h2>Report: Missing banners</h2>
@@ -29,13 +41,22 @@ const pages = missingBanner.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.m
29
41
  <th>Modified</th>
30
42
  </tr>
31
43
  </thead>
32
- {pages.map(p =>
33
- <tr>
34
- <td><a href={ accelerator.urlFormatter.formatAddress(p.url) }>{ p.frontmatter.title }</a></td>
35
- <td>{ p.frontmatter.pubDate }</td>
36
- <td>{ p.frontmatter.modDate }</td>
37
- </tr>
38
- )}
44
+ {
45
+ pages.map((p) => (
46
+ <tr>
47
+ <td>
48
+ <a
49
+ href={accelerator.urlFormatter.formatAddress(
50
+ p.url,
51
+ )}>
52
+ {p.frontmatter.title}
53
+ </a>
54
+ </td>
55
+ <td>{p.frontmatter.pubDate}</td>
56
+ <td>{p.frontmatter.modDate}</td>
57
+ </tr>
58
+ ))
59
+ }
39
60
  </table>
40
61
  </body>
41
- </html>
62
+ </html>
@@ -1,23 +1,35 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { PostOrdering, Accelerator } from 'astro-accelerator-utils';
5
- import { SITE } from '@config';
4
+ import { PostOrdering, Accelerator } from "astro-accelerator-utils";
5
+ import { SITE } from "@config";
6
+ import pkg from "package.json" with { type: "json" };
6
7
 
7
8
  // Logic
8
9
  const accelerator = new Accelerator(SITE);
9
10
 
10
11
  const allPages = accelerator.posts.all();
11
- const missingMeta = allPages.filter(p => (p.frontmatter.keywords == null || p.frontmatter.description == null) && p.frontmatter.layout != 'src/layouts/Redirect.astro');
12
+ const missingMeta = allPages.filter(
13
+ (p) =>
14
+ (p.frontmatter.keywords == null || p.frontmatter.description == null) &&
15
+ p.frontmatter.layout != "src/layouts/Redirect.astro",
16
+ );
12
17
  const pageCount = missingMeta.length;
13
- const pages = missingMeta.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.min(50, pageCount));
18
+ const pages = missingMeta
19
+ .sort(PostOrdering.sortByPubDateDesc)
20
+ .slice(0, Math.min(50, pageCount));
14
21
  ---
22
+
15
23
  <!doctype html>
16
24
  <html>
17
25
  <head>
18
26
  <meta charset="utf-8" />
19
27
  <title>Missing meta</title>
20
- <link rel="stylesheet" href="/css/report.css" />
28
+ <link
29
+ rel="stylesheet"
30
+ href={SITE.subfolder +
31
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
32
+ />
21
33
  </head>
22
34
  <body>
23
35
  <h2>Report: Missing meta</h2>
@@ -29,13 +41,22 @@ const pages = missingMeta.sort(PostOrdering.sortByPubDateDesc).slice(0, Math.min
29
41
  <th>Modified</th>
30
42
  </tr>
31
43
  </thead>
32
- {pages.map(p =>
33
- <tr>
34
- <td><a href={ accelerator.urlFormatter.formatAddress(p.url) }>{ p.frontmatter.title }</a></td>
35
- <td>{ p.frontmatter.pubDate }</td>
36
- <td>{ p.frontmatter.modDate }</td>
37
- </tr>
38
- )}
44
+ {
45
+ pages.map((p) => (
46
+ <tr>
47
+ <td>
48
+ <a
49
+ href={accelerator.urlFormatter.formatAddress(
50
+ p.url,
51
+ )}>
52
+ {p.frontmatter.title}
53
+ </a>
54
+ </td>
55
+ <td>{p.frontmatter.pubDate}</td>
56
+ <td>{p.frontmatter.modDate}</td>
57
+ </tr>
58
+ ))
59
+ }
39
60
  </table>
40
61
  </body>
41
- </html>
62
+ </html>
@@ -1,23 +1,33 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { Accelerator } from 'astro-accelerator-utils';
5
- import { SITE } from '@config';
4
+ import { Accelerator } from "astro-accelerator-utils";
5
+ import { SITE } from "@config";
6
+ import pkg from "package.json" with { type: "json" };
6
7
 
7
8
  // Logic
8
9
  const accelerator = new Accelerator(SITE);
9
10
 
10
11
  const allPages = accelerator.posts.all();
11
- const missingMeta = allPages.filter(p => (p.frontmatter.pubDate == null && p.frontmatter.layout != 'src/layouts/Redirect.astro'));
12
+ const missingMeta = allPages.filter(
13
+ (p) =>
14
+ p.frontmatter.pubDate == null &&
15
+ p.frontmatter.layout != "src/layouts/Redirect.astro",
16
+ );
12
17
  const pageCount = missingMeta.length;
13
18
  const pages = missingMeta.slice(0, Math.min(50, pageCount));
14
19
  ---
20
+
15
21
  <!doctype html>
16
22
  <html>
17
23
  <head>
18
24
  <meta charset="utf-8" />
19
25
  <title>Missing pubDate</title>
20
- <link rel="stylesheet" href="/css/report.css" />
26
+ <link
27
+ rel="stylesheet"
28
+ href={SITE.subfolder +
29
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
30
+ />
21
31
  </head>
22
32
  <body>
23
33
  <h2>Report: Missing pubDate</h2>
@@ -29,13 +39,22 @@ const pages = missingMeta.slice(0, Math.min(50, pageCount));
29
39
  <th>Modified</th>
30
40
  </tr>
31
41
  </thead>
32
- {pages.map(p =>
33
- <tr>
34
- <td><a href={ accelerator.urlFormatter.formatAddress(p.url) }>{ p.frontmatter.title }</a></td>
35
- <td>{ p.frontmatter.pubDate }</td>
36
- <td>{ p.frontmatter.modDate }</td>
37
- </tr>
38
- )}
42
+ {
43
+ pages.map((p) => (
44
+ <tr>
45
+ <td>
46
+ <a
47
+ href={accelerator.urlFormatter.formatAddress(
48
+ p.url,
49
+ )}>
50
+ {p.frontmatter.title}
51
+ </a>
52
+ </td>
53
+ <td>{p.frontmatter.pubDate}</td>
54
+ <td>{p.frontmatter.modDate}</td>
55
+ </tr>
56
+ ))
57
+ }
39
58
  </table>
40
59
  </body>
41
- </html>
60
+ </html>
@@ -3,11 +3,12 @@ import {
3
3
  PostOrdering,
4
4
  PostFiltering,
5
5
  Accelerator,
6
- } from 'astro-accelerator-utils';
7
- import type { MarkdownInstance } from 'astro-accelerator-utils/types/Astro';
8
- import type { Page } from 'astro';
9
- import { SITE } from '@config';
10
- import PagingLinks from '@components/PagingLinks.astro';
6
+ } from "astro-accelerator-utils";
7
+ import type { MarkdownInstance } from "astro-accelerator-utils/types/Astro";
8
+ import type { Page } from "astro";
9
+ import { SITE } from "@config";
10
+ import PagingLinks from "@components/PagingLinks.astro";
11
+ import pkg from "package.json" with { type: "json" };
11
12
 
12
13
  // Props
13
14
  type Props = {
@@ -21,9 +22,7 @@ const lang = SITE.default.lang;
21
22
 
22
23
  // Logic
23
24
  const accelerator = new Accelerator(SITE);
24
- const stats = new accelerator.statistics(
25
- 'report/oldest-content/[page].astro'
26
- );
25
+ const stats = new accelerator.statistics("report/oldest-content/[page].astro");
27
26
  stats.start();
28
27
 
29
28
  export async function getData() {
@@ -50,7 +49,7 @@ const pageLinks = accelerator.paging.links(
50
49
  SITE.pageLinks,
51
50
  page.lastPage,
52
51
  page.currentPage,
53
- page.url.current
52
+ page.url.current,
54
53
  );
55
54
 
56
55
  stats.stop();
@@ -61,10 +60,16 @@ stats.stop();
61
60
  <head>
62
61
  <meta charset="utf-8" />
63
62
  <title>Oldest content</title>
64
- <link rel="stylesheet" href="/css/report.css" />
63
+ <link
64
+ rel="stylesheet"
65
+ href={SITE.subfolder + `/css/report.css?v=${pkg.version ?? Date.now()}`}
66
+ />
65
67
  </head>
66
68
  <body>
67
- <h2>Report: Oldest content (Page <Fragment content={page.currentPage} />)</h2>
69
+ <h2>
70
+ Report: Oldest content (Page <Fragment content={page.currentPage}
71
+ ></Fragment>)
72
+ </h2>
68
73
  <table>
69
74
  <thead>
70
75
  <tr>
@@ -1,6 +1,7 @@
1
1
  ---
2
- import { Accelerator, PostOrdering } from 'astro-accelerator-utils';
3
- import { SITE } from '@config';
2
+ import { Accelerator, PostOrdering } from "astro-accelerator-utils";
3
+ import { SITE } from "@config";
4
+ import pkg from "package.json" with { type: "json" };
4
5
 
5
6
  // Logic
6
7
  const accelerator = new Accelerator(SITE);
@@ -9,7 +10,7 @@ const allPages = accelerator.posts.all();
9
10
  let futurePosts = allPages.filter(
10
11
  (p) =>
11
12
  p.frontmatter.pubDate != null &&
12
- Date.parse(p.frontmatter.pubDate) > Date.now()
13
+ Date.parse(p.frontmatter.pubDate) > Date.now(),
13
14
  );
14
15
  futurePosts = futurePosts.sort(PostOrdering.sortByPubDate);
15
16
 
@@ -22,7 +23,10 @@ const pages = futurePosts.slice(0, Math.min(50, pageCount));
22
23
  <head>
23
24
  <meta charset="utf-8" />
24
25
  <title>Publishing calendar</title>
25
- <link rel="stylesheet" href="/css/report.css" />
26
+ <link
27
+ rel="stylesheet"
28
+ href={SITE.subfolder + `/css/report.css?v=${pkg.version ?? Date.now()}`}
29
+ />
26
30
  </head>
27
31
  <body>
28
32
  <h2>Report: Publishing calendar</h2>
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { Accelerator } from 'astro-accelerator-utils';
5
- import { Lang } from '@util/Languages';
6
- import { Translations } from '@util/Languages';
7
- import { SITE } from '@config';
4
+ import { Accelerator } from "astro-accelerator-utils";
5
+ import { Lang } from "@util/Languages";
6
+ import { Translations } from "@util/Languages";
7
+ import { SITE } from "@config";
8
+ import pkg from "package.json" with { type: "json" };
8
9
 
9
10
  // Lang
10
- const _ = Lang('en');
11
+ const _ = Lang("en");
11
12
 
12
13
  // Logic
13
14
  const accelerator = new Accelerator(SITE);
@@ -15,12 +16,17 @@ const accelerator = new Accelerator(SITE);
15
16
  const links = accelerator.taxonomy.links(Translations, _, SITE.subfolder);
16
17
  const entries = accelerator.taxonomy.all();
17
18
  ---
19
+
18
20
  <!doctype html>
19
21
  <html>
20
22
  <head>
21
23
  <meta charset="utf-8" />
22
24
  <title>Taxonomy</title>
23
- <link rel="stylesheet" href="/css/report.css" />
25
+ <link
26
+ rel="stylesheet"
27
+ href={SITE.subfolder +
28
+ `/css/report.css?v=${pkg.version ?? Date.now()}`}
29
+ />
24
30
  </head>
25
31
  <body>
26
32
  <h2>Report: Taxonomy</h2>
@@ -32,20 +38,30 @@ const entries = accelerator.taxonomy.all();
32
38
  <th>Count</th>
33
39
  </tr>
34
40
  </thead>
35
- {entries.categories.map(t =>
36
- <tr>
37
- <td>{ links.category }</td>
38
- <td><a href={ links.getCategoryLink(t.title) }>{ t.title }</a></td>
39
- <td>{ t.count }</td>
40
- </tr>
41
- )}
42
- {entries.tags.map(t =>
43
- <tr>
44
- <td>{ links.tag }</td>
45
- <td><a href={ links.getTagLink(t.title) }>{ t.title }</a></td>
46
- <td>{ t.count }</td>
47
- </tr>
48
- )}
41
+ {
42
+ entries.categories.map((t) => (
43
+ <tr>
44
+ <td>{links.category}</td>
45
+ <td>
46
+ <a href={links.getCategoryLink(t.title)}>
47
+ {t.title}
48
+ </a>
49
+ </td>
50
+ <td>{t.count}</td>
51
+ </tr>
52
+ ))
53
+ }
54
+ {
55
+ entries.tags.map((t) => (
56
+ <tr>
57
+ <td>{links.tag}</td>
58
+ <td>
59
+ <a href={links.getTagLink(t.title)}>{t.title}</a>
60
+ </td>
61
+ <td>{t.count}</td>
62
+ </tr>
63
+ ))
64
+ }
49
65
  </table>
50
66
  </body>
51
- </html>
67
+ </html>
@@ -1,88 +1,122 @@
1
1
  ---
2
2
  // warning: This file is overwritten by Astro Accelerator
3
3
 
4
- import { Accelerator } from 'astro-accelerator-utils';
5
- import type { Frontmatter } from 'astro-accelerator-utils/types/Frontmatter';
6
- import { SITE, OPEN_GRAPH, HEADER_SCRIPTS } from '@config';
4
+ import { Accelerator } from "astro-accelerator-utils";
5
+ import type { Frontmatter } from "astro-accelerator-utils/types/Frontmatter";
6
+ import { SITE, OPEN_GRAPH, HEADER_SCRIPTS } from "@config";
7
+ import pkg from "package.json" with { type: "json" };
7
8
 
8
9
  const accelerator = new Accelerator(SITE);
9
- const stats = new accelerator.statistics('accelerator/components/HtmlHead.astro');
10
+ const stats = new accelerator.statistics(
11
+ "accelerator/components/HtmlHead.astro",
12
+ );
10
13
  stats.start();
11
14
 
12
15
  // Properties
13
16
  type Props = {
14
17
  lang: string;
15
- frontmatter: Frontmatter
16
- headings: { depth: number; slug: string; text: string; }[];
18
+ frontmatter: Frontmatter;
19
+ headings: { depth: number; slug: string; text: string }[];
17
20
  };
18
21
  const { frontmatter } = Astro.props;
19
22
 
20
23
  // Logic
21
24
  const imageSrc = frontmatter.bannerImage?.src ?? OPEN_GRAPH.image.src;
22
25
  const imageAlt = frontmatter.bannerImage?.alt ?? OPEN_GRAPH.image.alt;
23
- const robots = frontmatter.robots ?? 'index, follow';
26
+ const robots = frontmatter.robots ?? "index, follow";
24
27
  const canonicalImageSrc = new URL(imageSrc, Astro.site);
25
- const canonicalURL = accelerator.urlFormatter.formatUrl(new URL(Astro.url.pathname, Astro.site + SITE.subfolder));
28
+ const canonicalURL = accelerator.urlFormatter.formatUrl(
29
+ new URL(Astro.url.pathname, Astro.site + SITE.subfolder),
30
+ );
26
31
  const socialTitle = await accelerator.markdown.getTextFrom(frontmatter?.title);
27
- const title = `${ accelerator.markdown.titleCase(socialTitle) } ${ ((frontmatter.titleAdditional) ? ` ${frontmatter.titleAdditional}` : '') } | ${ SITE.title }`;
28
- const pageMeta = (frontmatter?.meta && frontmatter?.meta?.length > 0)
29
- ? frontmatter.meta
30
- : [];
32
+ const title = `${accelerator.markdown.titleCase(socialTitle)} ${frontmatter.titleAdditional ? ` ${frontmatter.titleAdditional}` : ""} | ${SITE.title}`;
33
+ const pageMeta =
34
+ frontmatter?.meta && frontmatter?.meta?.length > 0 ? frontmatter.meta : [];
31
35
 
32
36
  const authorList = accelerator.authors.forPost(frontmatter);
33
- const authorMeta = (authorList.mainAuthor?.frontmatter?.meta && authorList.mainAuthor?.frontmatter?.meta?.length > 0)
34
- ? authorList.mainAuthor.frontmatter.meta
35
- : [];
37
+ const authorMeta =
38
+ authorList.mainAuthor?.frontmatter?.meta &&
39
+ authorList.mainAuthor?.frontmatter?.meta?.length > 0
40
+ ? authorList.mainAuthor.frontmatter.meta
41
+ : [];
36
42
 
37
43
  const autoMeta = (name: string) => {
38
- return pageMeta.filter(m => m.name.toLowerCase() === name).length === 0;
39
- }
44
+ return pageMeta.filter((m) => m.name.toLowerCase() === name).length === 0;
45
+ };
40
46
 
41
47
  stats.stop();
42
48
  ---
49
+
43
50
  <head>
44
51
  <meta charset="utf-8" />
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' }>
51
- {autoMeta('viewport') &&
52
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
53
- }
54
- {autoMeta('format-detection') &&
55
- <meta name="format-detection" content="telephone=no">
52
+ <title>{title}</title>
53
+ <meta name="robots" content={"max-image-preview:large, " + robots} />
54
+ <meta name="keywords" content={frontmatter.keywords} />
55
+ <meta name="description" content={frontmatter.description} />
56
+ <link
57
+ rel="stylesheet"
58
+ href={SITE.subfolder + `/css/vars.css?v=${pkg.version ?? Date.now()}`}
59
+ />
60
+ <link
61
+ rel="stylesheet"
62
+ href={SITE.subfolder + `/css/main.css?v=${pkg.version ?? Date.now()}`}
63
+ />
64
+ {
65
+ autoMeta("viewport") && (
66
+ <meta
67
+ name="viewport"
68
+ content="width=device-width, initial-scale=1, minimum-scale=1"
69
+ />
70
+ )
56
71
  }
57
- {autoMeta('theme-color') &&
58
- <meta name="theme-color" content={ SITE.themeColor }>
72
+ {
73
+ autoMeta("format-detection") && (
74
+ <meta name="format-detection" content="telephone=no" />
75
+ )
59
76
  }
60
- {autoMeta('canonical') &&
61
- <link rel="canonical" href={ canonicalURL }>
77
+ {
78
+ autoMeta("theme-color") && (
79
+ <meta name="theme-color" content={SITE.themeColor} />
80
+ )
62
81
  }
63
- {SITE.feedUrl &&
64
- <link rel="alternate" type="application/atom+xml" title={ SITE.title } href={ SITE.feedUrl }>
82
+ {autoMeta("canonical") && <link rel="canonical" href={canonicalURL} />}
83
+ {
84
+ SITE.feedUrl && (
85
+ <link
86
+ rel="alternate"
87
+ type="application/atom+xml"
88
+ title={SITE.title}
89
+ href={SITE.feedUrl}
90
+ />
91
+ )
65
92
  }
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
- {pageMeta.map(m =>
82
- <meta name={ m.name } content={ m.content }>
83
- )}
84
- {authorMeta.map(m =>
85
- <meta name={ m.name } content={ m.content }>
86
- )}
87
- <Fragment set:html={ HEADER_SCRIPTS }></Fragment>
88
- </head>
93
+ <link
94
+ rel="alternate"
95
+ href={SITE.subfolder + "/sitemap.xml"}
96
+ type="application/rss+xml"
97
+ />
98
+ <link
99
+ rel="shortcut icon"
100
+ href={SITE.subfolder + "/icons/favicon.ico"}
101
+ type="image/x-icon"
102
+ />
103
+ <link
104
+ rel="apple-touch-icon"
105
+ href={SITE.subfolder + "/icons/apple-touch-icon.png"}
106
+ />
107
+ <meta property="og:type" content="website" />
108
+ <meta property="og:url" content={canonicalURL} />
109
+ <meta property="og:title" content={socialTitle} />
110
+ <meta property="og:description" content={frontmatter.description} />
111
+ <meta property="og:image" content={canonicalImageSrc} />
112
+ <meta property="og:image:alt" content={imageAlt} />
113
+ <meta name="twitter:card" content="summary_large_image" />
114
+ <meta name="twitter:title" content={socialTitle} />
115
+ <meta name="twitter:description" content={frontmatter.description} />
116
+ <meta name="twitter:image" content={canonicalImageSrc} />
117
+ <meta name="twitter:image:alt" content={imageAlt} />
118
+ <meta name="view-transition" content="same-origin" />
119
+ {pageMeta.map((m) => <meta name={m.name} content={m.content} />)}
120
+ {authorMeta.map((m) => <meta name={m.name} content={m.content} />)}
121
+ <Fragment set:html={HEADER_SCRIPTS} />
122
+ </head>