astro-accelerator 4.0.41 → 4.0.43

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.0.41",
2
+ "version": "4.0.43",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@astrojs/mdx": "^2.3.1",
35
- "astro": "^4.13.0",
36
- "astro-accelerator-utils": "^0.3.12",
35
+ "astro": "^4.13.1",
36
+ "astro-accelerator-utils": "^0.3.15",
37
37
  "cspell": "^8.13.1",
38
38
  "csv": "^6.3.10",
39
39
  "hast-util-from-selector": "^3.0.0",
@@ -32,10 +32,12 @@ type Props = {
32
32
  };
33
33
  const { title, page, headings, pubDate } = Astro.props satisfies Props;
34
34
 
35
+ // Enhance the title
36
+ const pageTitle = `${_(Translations.articles.archive_title).replace('{name}', title)} - ${_(Translations.articles.page_title).replace('{n}', page.currentPage.toString())}`;
37
+
35
38
  const frontmatter: Frontmatter = {
36
39
  layout: 'src/layouts/Default.astro',
37
- title: title,
38
- titleAdditional: `(${ _(Translations.articles.category) }) ` + _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()),
40
+ title: pageTitle,
39
41
  keywords: `${slug},articles`,
40
42
  description: `${SITE.title} ${slug} articles.`,
41
43
  pubDate: pubDate
@@ -118,7 +120,6 @@ if (page.url.current != pageLinks[0].url) {
118
120
  stats.stop();
119
121
  ---
120
122
  <Default frontmatter={ frontmatter } headings={ headings } breadcrumbs={ breadcrumbs }>
121
- <h2>{ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }</h2>
122
123
  <ArticleList lang={ lang } posts={ page.data } />
123
124
  <PagingLinks lang={ lang } page={ page } pageLinks={ pageLinks } />
124
125
  </Default>
@@ -32,10 +32,12 @@ type Props = {
32
32
  };
33
33
  const { title, page, headings, pubDate } = Astro.props satisfies Props;
34
34
 
35
+ // Enhance the title
36
+ const pageTitle = `${_(Translations.articles.archive_title).replace('{name}', title)} - ${_(Translations.articles.page_title).replace('{n}', page.currentPage.toString())}`;
37
+
35
38
  const frontmatter: Frontmatter = {
36
39
  layout: 'src/layouts/Default.astro',
37
- title: title,
38
- titleAdditional: `(${ _(Translations.articles.tag) }) ` + _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()),
40
+ title: pageTitle,
39
41
  keywords: `${slug},articles`,
40
42
  description: `${SITE.title} ${slug} articles.`,
41
43
  pubDate: pubDate
@@ -117,7 +119,6 @@ if (page.url.current != pageLinks[0].url) {
117
119
  stats.stop();
118
120
  ---
119
121
  <Default frontmatter={ frontmatter } headings={ headings } breadcrumbs={ breadcrumbs }>
120
- <h2>{ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }</h2>
121
122
  <ArticleList lang={ lang } posts={ page.data } />
122
123
  <PagingLinks lang={ lang } page={ page } pageLinks={ pageLinks } />
123
124
  </Default>
@@ -87,6 +87,9 @@
87
87
  }
88
88
  },
89
89
  "articles": {
90
+ "archive_title": {
91
+ "en": "Archive - {name}"
92
+ },
90
93
  "page_title": {
91
94
  "en": "Page {n}"
92
95
  },