@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 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 that alias to `src/config/*` in both Vite and TS config.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglefeint/astro-theme",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "description": "Anglefeint core theme package for Astro",
6
6
  "license": "MIT",
@@ -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 '../consts';
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 '../i18n/config';
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 '../../config/site';
3
- import { SOCIAL_LINKS } from '../../config/social';
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 '../../consts';
3
- import { SOCIAL_LINKS } from '../../config/social';
4
- import { THEME } from '../../config/theme';
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 '../../i18n/config';
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 '../../i18n/config';
6
- import { getMessages } from '../../i18n/messages';
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 {
@@ -1,4 +1,4 @@
1
- import type { Locale } from '../i18n/config';
1
+ import type { Locale } from '@anglefeint/site-i18n/config';
2
2
 
3
3
  /**
4
4
  * Site identity config. Override via environment variables:
package/src/consts.ts CHANGED
@@ -9,4 +9,4 @@ export {
9
9
  SITE_AUTHOR,
10
10
  SITE_TAGLINE,
11
11
  SITE_HERO_BY_LOCALE,
12
- } from './config/site';
12
+ } from '@anglefeint/site-config/site';
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import AiShell from './shells/AiShell.astro';
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import BaseShell from './shells/BaseShell.astro';
4
4
 
5
5
  interface Props {
@@ -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 '../consts';
9
- import { DEFAULT_LOCALE, type Locale, isLocale, localePath, blogIdToSlugAnyLocale } from '../i18n/config';
10
- import { getMessages } from '../i18n/messages';
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,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import CyberShell from './shells/CyberShell.astro';
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import HackerShell from './shells/HackerShell.astro';
4
4
 
5
5
  interface Props {
@@ -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 '../consts';
5
- import { type Locale, blogIdToSlugAnyLocale, localePath } from '../i18n/config';
6
- import { getMessages } from '../i18n/messages';
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 {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import MatrixShell from './shells/MatrixShell.astro';
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import ThemeFrame from '../../components/shared/ThemeFrame.astro';
4
4
  import type { ImageMetadata } from 'astro';
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import ThemeFrame from '../../components/shared/ThemeFrame.astro';
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import ThemeFrame from '../../components/shared/ThemeFrame.astro';
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import ThemeFrame from '../../components/shared/ThemeFrame.astro';
4
4
 
5
5
  interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { Locale } from '../../i18n/config';
2
+ import type { Locale } from '@anglefeint/site-i18n/config';
3
3
  import ThemeFrame from '../../components/shared/ThemeFrame.astro';
4
4
 
5
5
  interface Props {