astro-accelerator 5.0.3 → 5.0.5

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": "5.0.3",
2
+ "version": "5.0.5",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -25,27 +25,29 @@
25
25
  "stats": "node --no-experimental-fetch ./src/themes/accelerator/utilities/stats.mjs",
26
26
  "spellcheck": "git fetch origin main:refs/remotes/origin/main && git diff origin/main --name-only --diff-filter=ACMRTUXB | cspell --no-must-find-files --file-list stdin",
27
27
  "test": "astro build && npx playwright install --with-deps && npx playwright test",
28
+ "crawl": "linkinator ./dist --skip \"^(?!http://localhost)\" --recurse --verbosity error",
28
29
  "build": "astro build",
29
30
  "preview": "astro preview",
30
31
  "astro": "astro",
31
32
  "dts": "tsc ./tests/locate-content.js ./tests/locate-navigation.js ./tests/locate-search.js --allowJs --declaration --emitDeclarationOnly"
32
33
  },
33
34
  "dependencies": {
34
- "@astrojs/mdx": "^4.0.7",
35
- "astro": "^5.1.10",
35
+ "@astrojs/mdx": "^4.0.8",
36
+ "astro": "^5.2.5",
36
37
  "astro-accelerator-utils": "^0.3.36",
37
- "cspell": "^8.17.2",
38
+ "cspell": "^8.17.3",
38
39
  "csv": "^6.3.11",
39
40
  "glob": "^11.0.1",
40
41
  "hast-util-from-selector": "^3.0.1",
41
42
  "html-to-text": "^9.0.5",
42
43
  "keyword-extractor": "^0.0.28",
44
+ "linkinator": "^6.1.2",
43
45
  "optional": "^0.1.4",
44
46
  "remark-directive": "^3.0.1",
45
47
  "sharp": "^0.33.5"
46
48
  },
47
49
  "devDependencies": {
48
- "@playwright/test": "^1.50.0"
50
+ "@playwright/test": "^1.50.1"
49
51
  },
50
52
  "files": [
51
53
  ".npmrc",
@@ -44,11 +44,12 @@ type Props = {
44
44
  const { title, page, headings, pubDate } = Astro.props satisfies Props;
45
45
 
46
46
  const authorFrontmatter = {
47
- ...author.frontmatter,
48
- titleAdditional: `(${ _(Translations.articles.author) }) ` + _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()),
49
- pubDate: pubDate
47
+ ...author.frontmatter
50
48
  } as Frontmatter;
51
49
 
50
+ authorFrontmatter.title = `${ authorFrontmatter.title } (${ _(Translations.articles.author) }) - ${ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }`;
51
+ authorFrontmatter.pubDate = pubDate;
52
+
52
53
  const text = (author.frontmatter.summary ?? '').replace('\n', '\n\n');
53
54
  const authorText = accelerator.markdown.getHtmlFrom(text);
54
55
 
@@ -143,7 +144,6 @@ stats.stop();
143
144
  }
144
145
  </div>
145
146
  </div>
146
- <h2>{ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }</h2>
147
147
  <ArticleList lang={ lang } posts={ page.data } />
148
148
  <PagingLinks lang={ lang } page={ page } pageLinks={ pageLinks } />
149
149
  </Default>
@@ -4,7 +4,7 @@
4
4
  import Redirect from 'src/layouts/Redirect.astro';
5
5
 
6
6
  const frontmatter = {
7
- redirect: './oldest-content/1/',
7
+ redirect: './1/',
8
8
  } as any;
9
9
  ---
10
10