astro-accelerator 7.1.26 → 7.1.28

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.1.26",
2
+ "version": "7.1.28",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -8,7 +8,7 @@
8
8
  "themes"
9
9
  ],
10
10
  "type": "module",
11
- "packageManager": "pnpm@10.22.0",
11
+ "packageManager": "pnpm@12.6.0",
12
12
  "engines": {
13
13
  "node": ">=24",
14
14
  "pnpm": ">=10"
@@ -40,7 +40,7 @@
40
40
  "@astrojs/mdx": "^8.0.1",
41
41
  "@img/sharp-linux-x64": "^0.35.4",
42
42
  "astro": "^7.3.3",
43
- "astro-accelerator-utils": "^0.3.110",
43
+ "astro-accelerator-utils": "^0.3.111",
44
44
  "csv": "^6.6.3",
45
45
  "hast-util-from-selector": "^3.0.1",
46
46
  "html-to-text": "^10.0.1",
@@ -82,7 +82,8 @@ async function getData() {
82
82
  .sort(PostOrdering.sortByModDateDesc)
83
83
  .slice(0, limit)
84
84
  .map(
85
- (a) => `
85
+ (a) => {
86
+ return `
86
87
  <entry>
87
88
  <title>${escapeXml(a.frontmatter.title ?? '')}</title>
88
89
  <link href="${SITE.url + a.url}" />
@@ -90,11 +91,15 @@ async function getData() {
90
91
  <published>${a.frontmatter.pubDate}</published>
91
92
  <updated>${a.frontmatter.modDate ?? a.frontmatter.pubDate}</updated>
92
93
  <summary>${escapeXml(a.frontmatter.description ?? '')}</summary>
94
+ ${a.frontmatter.bannerImage?.src
95
+ ? `<link rel="enclosure" href="${SITE.url + a.frontmatter.bannerImage?.src}" type="image/*" />`
96
+ : ''}
93
97
  <author>
94
98
  <name>${escapeXml(getAuthorName(a.frontmatter))}</name>
95
99
  </author>
96
- <content type="html"><![CDATA[${contentItems[a.url] ?? ''}]]></content>
97
- </entry>`
100
+ <content type="html"><![CDATA[${(a.url && contentItems[a.url]) ?? ''}]]></content>
101
+ </entry>`;
102
+ }
98
103
  );
99
104
 
100
105
  stats.stop();
File without changes
File without changes
File without changes
File without changes