astro-accelerator 4.0.47 → 4.0.49
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.49",
|
|
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.
|
|
36
|
-
"astro-accelerator-utils": "^0.3.
|
|
35
|
+
"astro": "^4.15.3",
|
|
36
|
+
"astro-accelerator-utils": "^0.3.18",
|
|
37
37
|
"cspell": "^8.14.2",
|
|
38
38
|
"csv": "^6.3.10",
|
|
39
39
|
"glob": "^11.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"sharp": "^0.33.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@playwright/test": "^1.
|
|
48
|
+
"@playwright/test": "^1.47.0"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
".npmrc",
|
package/public/css/main.css
CHANGED
|
@@ -114,6 +114,8 @@ h6 {
|
|
|
114
114
|
h1 {
|
|
115
115
|
font-size: 3rem;
|
|
116
116
|
font-size: clamp(2rem, 6vw, 3rem);
|
|
117
|
+
max-width: 90%;
|
|
118
|
+
margin-inline: auto;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
h2 {
|
|
@@ -469,7 +471,7 @@ nav.site-nav h2 {
|
|
|
469
471
|
padding-top: 0;
|
|
470
472
|
|
|
471
473
|
@media (max-width: 860px) {
|
|
472
|
-
grid-template-columns:
|
|
474
|
+
grid-template-columns: 1.5rem auto 1.5rem;
|
|
473
475
|
grid-template-rows: auto auto auto;
|
|
474
476
|
gap: 0;
|
|
475
477
|
grid-template-areas:
|
|
@@ -483,6 +485,7 @@ nav.site-nav h2 {
|
|
|
483
485
|
grid-area: top;
|
|
484
486
|
text-align: center;
|
|
485
487
|
padding-bottom: var(--block-gap);
|
|
488
|
+
max-width: 100%;
|
|
486
489
|
}
|
|
487
490
|
|
|
488
491
|
.content-group header p {
|
|
@@ -1203,23 +1206,18 @@ pre.astro-code code {
|
|
|
1203
1206
|
}
|
|
1204
1207
|
|
|
1205
1208
|
.bookmark-link {
|
|
1206
|
-
margin-inline-start: 0.2em;
|
|
1207
1209
|
border-radius: var(--block-radius);
|
|
1208
|
-
font-size: 0.5em;
|
|
1209
1210
|
text-decoration: none;
|
|
1210
|
-
position: relative;
|
|
1211
|
-
top: -0.5em;
|
|
1212
1211
|
color: var(--fore-link);
|
|
1213
|
-
float: right;
|
|
1214
|
-
overflow: hidden;
|
|
1215
1212
|
display: block;
|
|
1216
|
-
width: 1.3em;
|
|
1217
|
-
height: 1.6em;
|
|
1218
1213
|
opacity: 0.5;
|
|
1214
|
+
position: absolute;
|
|
1215
|
+
font-size: 0.8em;
|
|
1219
1216
|
}
|
|
1220
1217
|
|
|
1221
1218
|
.bookmark-link::before {
|
|
1222
|
-
content: '
|
|
1219
|
+
content: '#';
|
|
1220
|
+
margin-left: -0.8em;
|
|
1223
1221
|
}
|
|
1224
1222
|
|
|
1225
1223
|
.bookmark-link:hover,
|
package/public/css/vars.css
CHANGED
|
@@ -18,6 +18,9 @@ stats.start();
|
|
|
18
18
|
|
|
19
19
|
const lang = SITE.default.lang;
|
|
20
20
|
|
|
21
|
+
// Language
|
|
22
|
+
const _ = Lang(lang);
|
|
23
|
+
|
|
21
24
|
// Props
|
|
22
25
|
type Props = {
|
|
23
26
|
page: Page<MarkdownInstance>;
|
|
@@ -26,17 +29,17 @@ type Props = {
|
|
|
26
29
|
};
|
|
27
30
|
const { page, headings, pubDate } = Astro.props satisfies Props;
|
|
28
31
|
|
|
32
|
+
// Enhance the title
|
|
33
|
+
const pageTitle = `${_(Translations.articles.articles_title)} - ${_(Translations.articles.page_title).replace('{n}', page.currentPage.toString())}`;
|
|
34
|
+
|
|
29
35
|
const frontmatter: Frontmatter = {
|
|
30
36
|
layout: 'src/layouts/Default.astro',
|
|
31
|
-
title:
|
|
37
|
+
title: pageTitle,
|
|
32
38
|
keywords: `articles`,
|
|
33
39
|
description: `${SITE.title} articles.`,
|
|
34
40
|
pubDate: pubDate
|
|
35
41
|
};
|
|
36
42
|
|
|
37
|
-
// Language
|
|
38
|
-
const _ = Lang(lang);
|
|
39
|
-
|
|
40
43
|
// Logic
|
|
41
44
|
export async function getData() {
|
|
42
45
|
const sourcePosts = await Astro.glob('./**/*.md*') as MarkdownInstance[];
|
|
@@ -61,7 +64,6 @@ const pageLinks = accelerator.paging.links(SITE.pageLinks, page.lastPage, page.c
|
|
|
61
64
|
stats.stop();
|
|
62
65
|
---
|
|
63
66
|
<Default frontmatter={ frontmatter } headings={ headings }>
|
|
64
|
-
<h2>{ _(Translations.articles.page_title).replace('{n}', page.currentPage.toString()) }</h2>
|
|
65
67
|
<ArticleList lang={ lang } posts={ page.data } />
|
|
66
68
|
<PagingLinks lang={ lang } page={ page } pageLinks={ pageLinks } />
|
|
67
69
|
</Default>
|