astro-accelerator 0.0.44 → 0.0.46
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 +3 -3
- package/public/css/main.css +4 -4
- package/public/js/modules/nav-sticky.js +2 -2
- package/src/config.ts +1 -0
- package/src/themes/accelerator/components/Authors.astro +2 -0
- package/src/themes/accelerator/components/HtmlHead.astro +2 -1
- package/src/themes/accelerator/layouts/Default.astro +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.46",
|
|
3
3
|
"author": "Steve Fenton",
|
|
4
4
|
"name": "astro-accelerator",
|
|
5
5
|
"description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@squoosh/lib": "^0.4.0",
|
|
28
|
-
"astro": "^1.6.
|
|
29
|
-
"astro-accelerator-utils": "^0.2.
|
|
28
|
+
"astro": "^1.6.13",
|
|
29
|
+
"astro-accelerator-utils": "^0.2.10",
|
|
30
30
|
"hast-util-from-selector": "^2.0.0",
|
|
31
31
|
"remark-directive": "^2.0.1"
|
|
32
32
|
},
|
package/public/css/main.css
CHANGED
|
@@ -597,7 +597,7 @@ form.site-search {
|
|
|
597
597
|
|
|
598
598
|
form.site-search div {
|
|
599
599
|
display: grid;
|
|
600
|
-
grid-template-columns:
|
|
600
|
+
grid-template-columns: fit-content(400px) auto 30px;
|
|
601
601
|
gap: 1em;
|
|
602
602
|
}
|
|
603
603
|
|
|
@@ -733,13 +733,13 @@ form.site-search button {
|
|
|
733
733
|
|
|
734
734
|
.post-meta {
|
|
735
735
|
display: flex;
|
|
736
|
-
align-items:
|
|
736
|
+
align-items: top;
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
.post-meta .author-image {
|
|
740
|
-
width:
|
|
740
|
+
width: 80px;
|
|
741
|
+
height: 80px;
|
|
741
742
|
margin-right: 1rem;
|
|
742
|
-
aspect-ratio: 1/1;
|
|
743
743
|
object-fit: cover;
|
|
744
744
|
}
|
|
745
745
|
|
|
@@ -31,11 +31,11 @@ function addStickyNavigation(headerSelector, navigationSelector, navigationListS
|
|
|
31
31
|
|
|
32
32
|
// Only enable sticky mode if the menu will fit vertically
|
|
33
33
|
// && where the browser is more than 860px wide
|
|
34
|
-
if (dimensions.navigationHeight < ((dimensions.browserHeight - dimensions.headerHeight) - buffer)
|
|
34
|
+
if (dimensions.navigationHeight < ((dimensions.browserHeight - Math.max(dimensions.headerHeight, site_features.stickyNav.top)) - buffer)
|
|
35
35
|
&& dimensions.browserWidth > 860) {
|
|
36
36
|
console.log('Navigation: Sticky Mode');
|
|
37
37
|
navigation.classList.add(className);
|
|
38
|
-
const top =
|
|
38
|
+
const top = site_features.stickyNav.top ?? 220;
|
|
39
39
|
navigation.style.top = top + 'px';
|
|
40
40
|
} else {
|
|
41
41
|
console.log('Navigation: Fixed Mode');
|
package/src/config.ts
CHANGED
|
@@ -49,6 +49,8 @@ const authorImage = authorList?.image?.src
|
|
|
49
49
|
<br /><time datetime={ frontmatter.modDate.toString() } itemprop="dateModified">
|
|
50
50
|
{ _(Translations.post.last_modified) } { accelerator.dateFormatter.formatDate(frontmatter.modDate, lang) }
|
|
51
51
|
</time>
|
|
52
|
+
}{authorList.mainAuthor &&
|
|
53
|
+
<p>{ authorList.mainAuthor.frontmatter.description }</p>
|
|
52
54
|
}
|
|
53
55
|
</span>
|
|
54
56
|
</div>
|
|
@@ -26,7 +26,8 @@ const title = `${ socialTitle } | ${ SITE.title }`;
|
|
|
26
26
|
<meta charset="utf-8" />
|
|
27
27
|
<title>{ title }</title>
|
|
28
28
|
<meta name="robots" content={ 'max-image-preview:large, ' + robots } />
|
|
29
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
29
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
|
|
30
|
+
<meta name="format-detection" content="telephone=no" />
|
|
30
31
|
<meta name="keywords" content={ frontmatter.keywords } />
|
|
31
32
|
<meta name="description" content={ frontmatter.description } />
|
|
32
33
|
<meta name="theme-color" content={ SITE.themeColor } />
|
|
@@ -51,8 +51,8 @@ const site_features = SITE.featureFlags;
|
|
|
51
51
|
</header>
|
|
52
52
|
<div class="page-content anim-show-parent" itemprop="articleBody">
|
|
53
53
|
<TableOfContents frontmatter={ frontmatter } headings={ headings } lang={ lang } />
|
|
54
|
-
<Authors frontmatter={ frontmatter } lang={ lang } />
|
|
55
54
|
<slot />
|
|
55
|
+
<Authors frontmatter={ frontmatter } lang={ lang } />
|
|
56
56
|
<Taxonomy frontmatter={ frontmatter } lang={ lang } />
|
|
57
57
|
<Related frontmatter={ frontmatter } headings={ headings } lang={ lang } />
|
|
58
58
|
</div>
|