@anglefeint/astro-theme 0.1.7 → 0.1.8
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/README.md +3 -1
- package/package.json +1 -1
- package/src/components/BaseHead.astro +2 -2
- package/src/components/shared/CommonFooter.astro +2 -2
- package/src/components/shared/CommonHeader.astro +4 -4
- package/src/components/shared/ThemeFrame.astro +2 -2
- package/src/config/site.ts +1 -1
- package/src/consts.ts +1 -1
- package/src/layouts/AiPageLayout.astro +1 -1
- package/src/layouts/BasePageLayout.astro +1 -1
- package/src/layouts/BlogPost.astro +3 -3
- package/src/layouts/CyberPageLayout.astro +1 -1
- package/src/layouts/HackerPageLayout.astro +1 -1
- package/src/layouts/HomePage.astro +3 -3
- package/src/layouts/MatrixPageLayout.astro +1 -1
- package/src/layouts/shells/AiShell.astro +1 -1
- package/src/layouts/shells/BaseShell.astro +1 -1
- package/src/layouts/shells/CyberShell.astro +1 -1
- package/src/layouts/shells/HackerShell.astro +1 -1
- package/src/layouts/shells/MatrixShell.astro +1 -1
package/README.md
CHANGED
|
@@ -48,8 +48,10 @@ This package reads site-specific config from alias imports:
|
|
|
48
48
|
- `@anglefeint/site-config/site`
|
|
49
49
|
- `@anglefeint/site-config/theme`
|
|
50
50
|
- `@anglefeint/site-config/social`
|
|
51
|
+
- `@anglefeint/site-i18n/config`
|
|
52
|
+
- `@anglefeint/site-i18n/messages`
|
|
51
53
|
|
|
52
|
-
In the starter/site project, map
|
|
54
|
+
In the starter/site project, map these aliases to `src/config/*` and `src/i18n/*` in both Vite and TS config.
|
|
53
55
|
|
|
54
56
|
## CLI
|
|
55
57
|
|
package/package.json
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
import '../styles/global.css';
|
|
5
5
|
import type { ImageMetadata } from 'astro';
|
|
6
6
|
import FallbackImage from '../assets/theme/placeholders/theme-placeholder-1.jpg';
|
|
7
|
-
import { SITE_AUTHOR, SITE_TITLE, SITE_URL } from '
|
|
7
|
+
import { SITE_AUTHOR, SITE_TITLE, SITE_URL } from '@anglefeint/site-config/site';
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_LOCALE,
|
|
10
10
|
SUPPORTED_LOCALES,
|
|
11
11
|
alternatePathForLocale,
|
|
12
12
|
isLocale,
|
|
13
13
|
stripLocaleFromPath,
|
|
14
|
-
} from '
|
|
14
|
+
} from '@anglefeint/site-i18n/config';
|
|
15
15
|
|
|
16
16
|
interface Props {
|
|
17
17
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
import { SITE_TAGLINE, SITE_TITLE } from '
|
|
3
|
-
import { SOCIAL_LINKS } from '
|
|
2
|
+
import { SITE_TAGLINE, SITE_TITLE } from '@anglefeint/site-config/site';
|
|
3
|
+
import { SOCIAL_LINKS } from '@anglefeint/site-config/social';
|
|
4
4
|
|
|
5
5
|
const today = new Date();
|
|
6
6
|
interface Props {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
import { SITE_TITLE } from '
|
|
3
|
-
import { SOCIAL_LINKS } from '
|
|
4
|
-
import { THEME } from '
|
|
2
|
+
import { SITE_TITLE } from '@anglefeint/site-config/site';
|
|
3
|
+
import { SOCIAL_LINKS } from '@anglefeint/site-config/social';
|
|
4
|
+
import { THEME } from '@anglefeint/site-config/theme';
|
|
5
5
|
import HeaderLink from '../HeaderLink.astro';
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_LOCALE,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
alternatePathForLocale,
|
|
12
12
|
isLocale,
|
|
13
13
|
stripLocaleFromPath,
|
|
14
|
-
} from '
|
|
14
|
+
} from '@anglefeint/site-i18n/config';
|
|
15
15
|
|
|
16
16
|
interface Props {
|
|
17
17
|
locale?: Locale;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import BaseHead from '../BaseHead.astro';
|
|
3
3
|
import CommonHeader from './CommonHeader.astro';
|
|
4
4
|
import CommonFooter from './CommonFooter.astro';
|
|
5
|
-
import { type Locale, DEFAULT_LOCALE, isLocale } from '
|
|
6
|
-
import { getMessages } from '
|
|
5
|
+
import { type Locale, DEFAULT_LOCALE, isLocale } from '@anglefeint/site-i18n/config';
|
|
6
|
+
import { getMessages } from '@anglefeint/site-i18n/messages';
|
|
7
7
|
import type { ImageMetadata } from 'astro';
|
|
8
8
|
|
|
9
9
|
interface Props {
|
package/src/config/site.ts
CHANGED
package/src/consts.ts
CHANGED
|
@@ -5,9 +5,9 @@ import themeRedqueen1 from '../assets/theme/red-queen/theme-redqueen1.webp';
|
|
|
5
5
|
import themeRedqueen2 from '../assets/theme/red-queen/theme-redqueen2.gif';
|
|
6
6
|
import FormattedDate from '../components/FormattedDate.astro';
|
|
7
7
|
import AiShell from './shells/AiShell.astro';
|
|
8
|
-
import { SITE_AUTHOR } from '
|
|
9
|
-
import { DEFAULT_LOCALE, type Locale, isLocale, localePath, blogIdToSlugAnyLocale } from '
|
|
10
|
-
import { getMessages } from '
|
|
8
|
+
import { SITE_AUTHOR } from '@anglefeint/site-config/site';
|
|
9
|
+
import { DEFAULT_LOCALE, type Locale, isLocale, localePath, blogIdToSlugAnyLocale } from '@anglefeint/site-i18n/config';
|
|
10
|
+
import { getMessages } from '@anglefeint/site-i18n/messages';
|
|
11
11
|
|
|
12
12
|
type Props = CollectionEntry<'blog'>['data'] & {
|
|
13
13
|
locale?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { CollectionEntry } from 'astro:content';
|
|
3
3
|
import FormattedDate from '../components/FormattedDate.astro';
|
|
4
|
-
import { SITE_HERO_BY_LOCALE, SITE_TITLE } from '
|
|
5
|
-
import { type Locale, blogIdToSlugAnyLocale, localePath } from '
|
|
6
|
-
import { getMessages } from '
|
|
4
|
+
import { SITE_HERO_BY_LOCALE, SITE_TITLE } from '@anglefeint/site-config/site';
|
|
5
|
+
import { type Locale, blogIdToSlugAnyLocale, localePath } from '@anglefeint/site-i18n/config';
|
|
6
|
+
import { getMessages } from '@anglefeint/site-i18n/messages';
|
|
7
7
|
import MatrixShell from './shells/MatrixShell.astro';
|
|
8
8
|
|
|
9
9
|
interface Props {
|