astro-accelerator 4.0.41 → 4.0.42
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.
|
|
2
|
+
"version": "4.0.42",
|
|
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.
|
|
36
|
-
"astro-accelerator-utils": "^0.3.
|
|
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,9 +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:
|
|
40
|
+
title: pageTitle,
|
|
38
41
|
titleAdditional: `(${ _(Translations.articles.category) }) ` + _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()),
|
|
39
42
|
keywords: `${slug},articles`,
|
|
40
43
|
description: `${SITE.title} ${slug} articles.`,
|
|
@@ -118,7 +121,6 @@ if (page.url.current != pageLinks[0].url) {
|
|
|
118
121
|
stats.stop();
|
|
119
122
|
---
|
|
120
123
|
<Default frontmatter={ frontmatter } headings={ headings } breadcrumbs={ breadcrumbs }>
|
|
121
|
-
<h2>{ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }</h2>
|
|
122
124
|
<ArticleList lang={ lang } posts={ page.data } />
|
|
123
125
|
<PagingLinks lang={ lang } page={ page } pageLinks={ pageLinks } />
|
|
124
126
|
</Default>
|
|
@@ -32,9 +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:
|
|
40
|
+
title: pageTitle,
|
|
38
41
|
titleAdditional: `(${ _(Translations.articles.tag) }) ` + _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()),
|
|
39
42
|
keywords: `${slug},articles`,
|
|
40
43
|
description: `${SITE.title} ${slug} articles.`,
|
|
@@ -117,7 +120,6 @@ if (page.url.current != pageLinks[0].url) {
|
|
|
117
120
|
stats.stop();
|
|
118
121
|
---
|
|
119
122
|
<Default frontmatter={ frontmatter } headings={ headings } breadcrumbs={ breadcrumbs }>
|
|
120
|
-
<h2>{ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }</h2>
|
|
121
123
|
<ArticleList lang={ lang } posts={ page.data } />
|
|
122
124
|
<PagingLinks lang={ lang } page={ page } pageLinks={ pageLinks } />
|
|
123
125
|
</Default>
|