core-maugli 1.2.20 → 1.2.21
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,7 +1,9 @@
|
|
1
1
|
---
|
2
|
-
import {
|
3
|
-
import siteConfig from '../data/site-config.ts';
|
2
|
+
import type { CollectionEntry } from 'astro:content';
|
4
3
|
import '../styles/global.css';
|
4
|
+
import { getFilteredCollection } from '../utils/content-loader';
|
5
|
+
import siteConfig from '../data/site-config';
|
6
|
+
import { getAbsoluteLocaleUrl, getRelativeLocaleUrl } from 'astro:i18n';
|
5
7
|
// Определи тип выше:
|
6
8
|
export type ImageMimeType = 'image/jpeg' | 'image/png' | 'image/webp';
|
7
9
|
|
@@ -86,6 +88,50 @@ let defaultAuthorName = defaultAuthor.data.name;
|
|
86
88
|
<meta name="robots" content="index, follow" />
|
87
89
|
<meta name="generator" content={Astro.generator} />
|
88
90
|
|
91
|
+
<!-- Critical CSS Inline for Performance -->
|
92
|
+
<style>
|
93
|
+
:root {
|
94
|
+
--brand-color-rgb: 12, 191, 17;
|
95
|
+
--brand-color: rgb(var(--brand-color-rgb));
|
96
|
+
--text-main: #111c2d;
|
97
|
+
--text-heading: #3b5174;
|
98
|
+
--text-muted: #6b7280;
|
99
|
+
--bg-main: #ffffff;
|
100
|
+
--bg-muted: rgba(237, 241, 247, 0.621);
|
101
|
+
--border-main: rgba(17, 28, 44, 0.13);
|
102
|
+
--font-sans: 'Inter Variable', sans-serif;
|
103
|
+
--font-serif: 'Geologica Variable', sans-serif;
|
104
|
+
}
|
105
|
+
html.dark {
|
106
|
+
--brand-color-rgb: 13, 211, 18;
|
107
|
+
--brand-color: rgb(var(--brand-color-rgb));
|
108
|
+
--text-main: #ffffff;
|
109
|
+
--text-heading: rgba(202, 252, 254, 0.7);
|
110
|
+
--text-muted: #9ca3af;
|
111
|
+
--bg-main: #0b131e;
|
112
|
+
--bg-muted: #131d2cde;
|
113
|
+
--border-main: rgba(51, 66, 66, 0.6);
|
114
|
+
}
|
115
|
+
body {
|
116
|
+
font-family: var(--font-sans);
|
117
|
+
color: var(--text-main);
|
118
|
+
background-color: var(--bg-main);
|
119
|
+
margin: 0;
|
120
|
+
line-height: 1.5;
|
121
|
+
}
|
122
|
+
* {
|
123
|
+
box-sizing: border-box;
|
124
|
+
}
|
125
|
+
</style>
|
126
|
+
|
127
|
+
<!-- Font Preloading for Performance -->
|
128
|
+
<link rel="preload" href="/_astro/inter-wght.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
|
129
|
+
<link rel="preload" href="/_astro/geologica-wght.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
|
130
|
+
<noscript>
|
131
|
+
<link rel="stylesheet" href="/_astro/inter-wght.css" />
|
132
|
+
<link rel="stylesheet" href="/_astro/geologica-wght.css" />
|
133
|
+
</noscript>
|
134
|
+
|
89
135
|
<!-- SEO -->
|
90
136
|
<meta name="description" content={seoDescription} />
|
91
137
|
<meta name="keywords" content={seoKeywords} />
|
@@ -108,8 +154,8 @@ let defaultAuthorName = defaultAuthor.data.name;
|
|
108
154
|
<meta property="og:description" content={seoDescription} />
|
109
155
|
{resolvedImage?.src && <meta property="og:image" content={resolvedImage.src} />}
|
110
156
|
{resolvedImage?.alt && <meta property="og:image:alt" content={resolvedImage.alt} />}
|
111
|
-
{typeof resolvedImage?.width !== 'undefined' && <meta property="og:image:width" content={resolvedImage.width} />}
|
112
|
-
{typeof resolvedImage?.height !== 'undefined' && <meta property="og:image:height" content={resolvedImage.height} />}
|
157
|
+
{typeof resolvedImage?.width !== 'undefined' && <meta property="og:image:width" content={resolvedImage.width.toString()} />}
|
158
|
+
{typeof resolvedImage?.height !== 'undefined' && <meta property="og:image:height" content={resolvedImage.height.toString()} />}
|
113
159
|
{resolvedImage?.type && <meta property="og:image:type" content={resolvedImage.type} />}
|
114
160
|
|
115
161
|
<!-- X/Twitter -->
|
@@ -109,7 +109,18 @@ const copyrightYears = yearStart === yearEnd ? `${yearStart}` : `${yearStart}–
|
|
109
109
|
]}
|
110
110
|
>
|
111
111
|
<div class="flex flex-row justify-between items-end w-full mt-2">
|
112
|
-
<
|
112
|
+
<div class="flex flex-col items-start gap-1">
|
113
|
+
<img src="/footerlabel.svg" alt="Maugli Label" style="height:32px;width:auto;" loading="lazy" decoding="async" />
|
114
|
+
<a
|
115
|
+
href="https://www.npmjs.com/package/core-maugli"
|
116
|
+
target="_blank"
|
117
|
+
rel="noopener noreferrer"
|
118
|
+
class="footer-link text-xs opacity-60 hover:opacity-100"
|
119
|
+
style="color:var(--text-muted);font-family:var(--font-sans);"
|
120
|
+
>
|
121
|
+
npm package
|
122
|
+
</a>
|
123
|
+
</div>
|
113
124
|
{
|
114
125
|
Object.values(maugliConfig.links || {}).some(Boolean) && (
|
115
126
|
<div class="flex flex-row items-center gap-2 ml-4">
|