@anglefeint/astro-theme 0.1.4 → 0.1.6
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 +1 -1
- package/src/cli-new-page.mjs +1 -1
- package/src/cli-new-post.mjs +1 -1
- package/src/config/about.ts +16 -16
- package/src/i18n/config.ts +8 -4
- package/src/i18n/locales.mjs +3 -0
package/package.json
CHANGED
package/src/cli-new-page.mjs
CHANGED
|
@@ -65,7 +65,7 @@ function templateFor({ slug, theme }) {
|
|
|
65
65
|
return `---
|
|
66
66
|
import type { GetStaticPaths } from 'astro';
|
|
67
67
|
import ${layoutName} from '@anglefeint/astro-theme/layouts/${layoutName}.astro';
|
|
68
|
-
import { SUPPORTED_LOCALES } from '
|
|
68
|
+
import { SUPPORTED_LOCALES } from '@anglefeint/astro-theme/i18n/config';
|
|
69
69
|
|
|
70
70
|
export const getStaticPaths = (() => SUPPORTED_LOCALES.map((lang) => ({ params: { lang } }))) satisfies GetStaticPaths;
|
|
71
71
|
|
package/src/cli-new-post.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdir, writeFile, access, readdir } from 'node:fs/promises';
|
|
2
2
|
import { constants } from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
+
import { SUPPORTED_LOCALES } from './i18n/locales.mjs';
|
|
4
5
|
|
|
5
|
-
const SUPPORTED_LOCALES = ['en', 'ja', 'ko', 'es', 'zh'];
|
|
6
6
|
const CONTENT_ROOT = path.resolve(process.cwd(), 'src/content/blog');
|
|
7
7
|
const DEFAULT_COVERS_ROOT = path.resolve(process.cwd(), 'src/assets/blog/default-covers');
|
|
8
8
|
|
package/src/config/about.ts
CHANGED
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
export const ABOUT_CONFIG = {
|
|
6
6
|
metaLine: '$ profile booted | mode: builder',
|
|
7
7
|
sections: {
|
|
8
|
-
who: '
|
|
9
|
-
what: '
|
|
8
|
+
who: 'Write a short introduction about yourself, your background, and your primary focus areas.',
|
|
9
|
+
what: 'Describe what you build, your core skills, and the kinds of projects you want to be known for.',
|
|
10
10
|
ethos: [
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'Ship in small iterations and
|
|
14
|
-
'
|
|
11
|
+
'Prioritize clarity before complexity.',
|
|
12
|
+
'Favor maintainable systems over one-off solutions.',
|
|
13
|
+
'Ship in small iterations and learn from feedback.',
|
|
14
|
+
'Communicate directly and document decisions.',
|
|
15
15
|
],
|
|
16
|
-
now: '
|
|
17
|
-
contactLead: '
|
|
18
|
-
signature: '>
|
|
16
|
+
now: 'Share what you are currently building, shipping, or learning.',
|
|
17
|
+
contactLead: 'Add a short collaboration note (for example: open to freelance, consulting, or full-time roles).',
|
|
18
|
+
signature: '> Replace with your own signature.',
|
|
19
19
|
},
|
|
20
20
|
contact: {
|
|
21
|
-
email: '
|
|
22
|
-
githubUrl: 'https://github.com/
|
|
21
|
+
email: 'you@example.com',
|
|
22
|
+
githubUrl: 'https://github.com/yourname',
|
|
23
23
|
githubLabel: 'GitHub',
|
|
24
24
|
},
|
|
25
25
|
sidebar: {
|
|
@@ -69,12 +69,12 @@ export const ABOUT_CONFIG = {
|
|
|
69
69
|
backgroundLines: [
|
|
70
70
|
'~ $ ls -la',
|
|
71
71
|
'total 42',
|
|
72
|
-
'drwxr-xr-x 12
|
|
73
|
-
'drwxr-xr-x 8
|
|
74
|
-
'-rw-r--r-- 1
|
|
75
|
-
'-rwxr-xr-x 1
|
|
72
|
+
'drwxr-xr-x 12 user staff 384 Jan 12 about blog projects',
|
|
73
|
+
'drwxr-xr-x 8 user staff 256 Jan 11 .config .ssh keys',
|
|
74
|
+
'-rw-r--r-- 1 user staff 2048 Jan 10 README.md .env.gpg',
|
|
75
|
+
'-rwxr-xr-x 1 user staff 512 Jan 9 deploy.sh script',
|
|
76
76
|
'~ $ cat .motd',
|
|
77
|
-
'>> welcome
|
|
77
|
+
'>> welcome | access granted',
|
|
78
78
|
],
|
|
79
79
|
scrollToasts: {
|
|
80
80
|
p30: 'context parsed',
|
package/src/i18n/config.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
SUPPORTED_LOCALES as SUPPORTED_LOCALES_RUNTIME,
|
|
3
|
+
DEFAULT_LOCALE as DEFAULT_LOCALE_RUNTIME,
|
|
4
|
+
} from './locales.mjs';
|
|
5
|
+
|
|
6
|
+
export type Locale = 'en' | 'ja' | 'ko' | 'es' | 'zh';
|
|
7
|
+
export const SUPPORTED_LOCALES = SUPPORTED_LOCALES_RUNTIME as readonly Locale[];
|
|
8
|
+
export const DEFAULT_LOCALE: Locale = DEFAULT_LOCALE_RUNTIME as Locale;
|
|
5
9
|
|
|
6
10
|
export const LOCALE_LABELS: Record<Locale, string> = {
|
|
7
11
|
en: 'English',
|