astro-accelerator 4.1.5 → 4.1.6

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": "4.1.5",
2
+ "version": "4.1.6",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@astrojs/mdx": "^2.3.1",
35
- "astro": "^4.16.6",
36
- "astro-accelerator-utils": "^0.3.25",
37
- "cspell": "^8.15.4",
35
+ "astro": "^4.16.8",
36
+ "astro-accelerator-utils": "^0.3.26",
37
+ "cspell": "^8.15.7",
38
38
  "csv": "^6.3.10",
39
39
  "glob": "^11.0.0",
40
40
  "hast-util-from-selector": "^3.0.0",
@@ -45,7 +45,7 @@
45
45
  "sharp": "^0.33.5"
46
46
  },
47
47
  "devDependencies": {
48
- "@playwright/test": "^1.48.1"
48
+ "@playwright/test": "^1.48.2"
49
49
  },
50
50
  "files": [
51
51
  ".npmrc",
@@ -26,6 +26,11 @@ const canonicalURL = accelerator.urlFormatter.formatUrl(new URL(Astro.url.pathn
26
26
  const socialTitle = await accelerator.markdown.getTextFrom(frontmatter?.title);
27
27
  const title = `${ accelerator.markdown.titleCase(socialTitle) } ${ ((frontmatter.titleAdditional) ? ` ${frontmatter.titleAdditional}` : '') } | ${ SITE.title }`;
28
28
 
29
+ const authorList = accelerator.authors.forPost(frontmatter);
30
+ const authorMeta = (authorList.mainAuthor?.frontmatter?.meta && authorList.mainAuthor?.frontmatter?.meta?.length > 0)
31
+ ? authorList.mainAuthor.frontmatter.meta
32
+ : [];
33
+
29
34
  stats.stop();
30
35
  ---
31
36
  <head>
@@ -52,6 +57,9 @@ stats.stop();
52
57
  <meta property="og:description" content={ frontmatter.description } />
53
58
  <meta property="og:image" content={ canonicalImageSrc } />
54
59
  <meta property="og:image:alt" content={ imageAlt } />
60
+ {authorMeta.map(m =>
61
+ <meta name={ m.name } content={ m.content } />
62
+ )}
55
63
  <meta name="twitter:card" content="summary_large_image" />
56
64
  <meta name="twitter:title" content={ socialTitle } />
57
65
  <meta name="twitter:description" content={ frontmatter.description } />