astro-accelerator 4.1.15 → 5.0.0
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 +4 -4
- package/src/themes/accelerator/components/Breadcrumbs.astro +2 -2
- package/src/themes/accelerator/components/FooterItem.astro +1 -1
- package/src/themes/accelerator/components/NavigationItem.astro +1 -1
- package/src/themes/accelerator/components/PagingLinks.astro +1 -1
- package/src/pages/articles/index.astro +0 -11
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "5.0.0",
|
|
3
3
|
"author": "Steve Fenton",
|
|
4
4
|
"name": "astro-accelerator",
|
|
5
5
|
"description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"dts": "tsc ./tests/locate-content.js ./tests/locate-navigation.js ./tests/locate-search.js --allowJs --declaration --emitDeclarationOnly"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@astrojs/mdx": "^
|
|
35
|
-
"astro": "^
|
|
36
|
-
"astro-accelerator-utils": "^0.3.
|
|
34
|
+
"@astrojs/mdx": "^4.0.1",
|
|
35
|
+
"astro": "^5.0.3",
|
|
36
|
+
"astro-accelerator-utils": "^0.3.30",
|
|
37
37
|
"cspell": "^8.16.1",
|
|
38
38
|
"csv": "^6.3.11",
|
|
39
39
|
"glob": "^11.0.0",
|
|
@@ -42,13 +42,13 @@ stats.stop();
|
|
|
42
42
|
{navPages.map((page, index) => (
|
|
43
43
|
<li property="itemListElement" typeof="ListItem">
|
|
44
44
|
<meta property="position" content={ index.toString() } />
|
|
45
|
-
<a property="item" typeof="WebPage" href={ accelerator.urlFormatter.formatAddress(page.url) } aria-current={ page.ariaCurrent } rel={ page.rel }><span property="name">{ page.title }</span></a>
|
|
45
|
+
<a property="item" typeof="WebPage" href={ accelerator.urlFormatter.formatAddress(page.url) } aria-current={ page.ariaCurrent ? page.ariaCurrent : null } rel={ page.rel }><span property="name">{ page.title }</span></a>
|
|
46
46
|
</li>
|
|
47
47
|
))}
|
|
48
48
|
{breadcrumbs && breadcrumbs.map( (crumb) => (
|
|
49
49
|
<li property="itemListElement" typeof="ListItem">
|
|
50
50
|
<meta property="position" content={ (metaIndex++).toString() } />
|
|
51
|
-
<a property="item" typeof="WebPage" href={ accelerator.urlFormatter.formatAddress(crumb.url) } aria-current={ crumb.ariaCurrent }><span property="name">{ crumb.title }</span></a>
|
|
51
|
+
<a property="item" typeof="WebPage" href={ accelerator.urlFormatter.formatAddress(crumb.url) } aria-current={ crumb.ariaCurrent ? crumb.ariaCurrent : null }><span property="name">{ crumb.title }</span></a>
|
|
52
52
|
</li>
|
|
53
53
|
))}
|
|
54
54
|
</ol>
|
|
@@ -25,7 +25,7 @@ stats.stop();
|
|
|
25
25
|
<ul>
|
|
26
26
|
{ page.children.sort((a, b) => a.order - b.order).map((child) => (
|
|
27
27
|
<li>
|
|
28
|
-
<a href={ child.url } aria-current={ child.ariaCurrent } rel={ child.rel }>{ child.title }</a>
|
|
28
|
+
<a href={ child.url } aria-current={ child.ariaCurrent ? child.ariaCurrent : null } rel={ child.rel }>{ child.title }</a>
|
|
29
29
|
</li>
|
|
30
30
|
))}
|
|
31
31
|
</ul>
|
|
@@ -25,7 +25,7 @@ stats.stop();
|
|
|
25
25
|
---
|
|
26
26
|
{(page.children.length == 0) && (
|
|
27
27
|
<li>
|
|
28
|
-
<a href={ accelerator.urlFormatter.formatAddress(page.url) } aria-current={ page.ariaCurrent } rel={ page.rel } title={ linkTitle }>{ page.title }</a>
|
|
28
|
+
<a href={ accelerator.urlFormatter.formatAddress(page.url) } aria-current={ page.ariaCurrent ? page.ariaCurrent : null } rel={ page.rel } title={ linkTitle }>{ page.title }</a>
|
|
29
29
|
</li>
|
|
30
30
|
)}
|
|
31
31
|
{(page.children.length > 0) && (
|
|
@@ -30,7 +30,7 @@ stats.stop();
|
|
|
30
30
|
? <a href={ accelerator.urlFormatter.formatAddress(page.url.prev) }>{ _(Translations.articles.previous) }</a>
|
|
31
31
|
: <span>{ _(Translations.articles.previous) }</span>}
|
|
32
32
|
{pageLinks.map((link) => (
|
|
33
|
-
<a href={ accelerator.urlFormatter.formatAddress(link.url) } aria-current={ link.ariaCurrent } class={ link.class }>{ link.title }</a>
|
|
33
|
+
<a href={ accelerator.urlFormatter.formatAddress(link.url) } aria-current={ link.ariaCurrent ? link.ariaCurrent : null } class={ link.class }>{ link.title }</a>
|
|
34
34
|
))}
|
|
35
35
|
{page.url.next
|
|
36
36
|
? <a href={ accelerator.urlFormatter.formatAddress(page.url.next) }>{ _(Translations.articles.next) }</a>
|