astro-accelerator 5.0.3 → 5.0.4

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.4",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -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>