@xingwangzhe/stalux 1.3.9 → 1.4.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingwangzhe/stalux",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "A powerful, modern Astro blog theme \u2014 use as template or install as plugin",
5
5
  "keywords": [
6
6
  "astro",
@@ -191,6 +191,20 @@ function collectCommonChars(projectRoot: string): string {
191
191
 
192
192
  scanDir(srcDir);
193
193
 
194
+ // Also scan user config YAML files for nav titles, descriptions, etc.
195
+ const configDir = resolve(projectRoot, CONTENT_ROOT, "config");
196
+ if (existsSync(configDir)) {
197
+ for (const f of readdirSync(configDir)) {
198
+ if (!f.endsWith(".yml") && !f.endsWith(".yaml")) continue;
199
+ try {
200
+ const content = readFileSync(join(configDir, f), "utf-8");
201
+ for (const ch of content) chars.add(ch);
202
+ } catch {
203
+ /* skip */
204
+ }
205
+ }
206
+ }
207
+
194
208
  return [...chars].sort().join("");
195
209
  }
196
210