typerighter 0.57.1 → 0.57.3

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.
@@ -1,5 +1,5 @@
1
- import { s as e, t } from "./vite-ltcrEmat.js";
2
- import { n } from "./context-CPrHBM3S.js";
1
+ import { s as e, t } from "./vite-Bd6MPoKO.js";
2
+ import { n } from "./context-CLKZYp4U.js";
3
3
  import r from "node:path";
4
4
  import i from "picocolors";
5
5
  import { createServer as a } from "vite";
@@ -370,7 +370,7 @@ function A() {
370
370
  }), process.on("unhandledRejection", (e) => {
371
371
  j("runtime", e instanceof Error ? e : Error(String(e)));
372
372
  }), i.command("[root]", "Start dev server").alias("dev").option("--port <port>", "Port to listen on").option("--host", "Expose to network").option("--fresh", "Start fresh, ignore cache from previous session").option("--verbose", "Print version and build info").action(async (e, n) => {
373
- n.verbose && console.log(`${k} cli v0.57.1 (built 11/9/2026, 4:07:15 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
373
+ n.verbose && console.log(`${k} cli v0.57.3 (built 11/9/2026, 5:32:03 PM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
374
374
  let r = await a({
375
375
  root: N(e),
376
376
  configFile: !1,
@@ -383,7 +383,8 @@ function A() {
383
383
  });
384
384
  await r.listen(), r.printUrls();
385
385
  }), i.command("build [root]", "Build for production").option("--outDir <dir>", "Output directory", { default: "dist" }).option("--base <path>", "Base public path").option("--verbose", "Print version and build info").action(async (t, r) => {
386
- let i = n(N(t));
386
+ r.verbose && (process.env.TYPEDOWN_VERBOSE = "1");
387
+ let i = n(N(t), { verbose: r.verbose });
387
388
  r.verbose && await M(i);
388
389
  try {
389
390
  await e(i, {
@@ -395,7 +396,7 @@ function A() {
395
396
  }
396
397
  process.exit(0);
397
398
  }), i.command("init [root]", "Scaffold a new project").option("--name <name>", "Project name").option("--title <title>", "Site title").option("--description <description>", "Site description").option("--yes", "Skip confirmation for existing projects").action(async (e, t) => {
398
- let { initialize: n } = await import("./init-Bvm3vDph.js");
399
+ let { initialize: n } = await import("./init-BduI0qK5.js");
399
400
  await n(N(e), t);
400
401
  }), i.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
401
402
  let r = N(e), i = n(r);
@@ -410,7 +411,8 @@ function A() {
410
411
  i.dispose();
411
412
  }
412
413
  }), i.command("check [root]", "Check vault for errors").option("--fix", "Auto-fix formatting issues").option("--verbose", "Print version and build info").action(async (e, t) => {
413
- let i = n(N(e));
414
+ t.verbose && (process.env.TYPEDOWN_VERBOSE = "1");
415
+ let i = n(N(e), { verbose: t.verbose });
414
416
  t.verbose && await M(i);
415
417
  let { logger: a } = i;
416
418
  try {
@@ -433,7 +435,7 @@ function A() {
433
435
  } finally {
434
436
  i.dispose();
435
437
  }
436
- }), i.help(), i.version("0.57.1"), i.parse();
438
+ }), i.help(), i.version("0.57.3"), i.parse();
437
439
  }
438
440
  function j(e, t) {
439
441
  let n = t instanceof Error ? t.message : String(t);
@@ -441,7 +443,7 @@ function j(e, t) {
441
443
  }
442
444
  async function M(e) {
443
445
  let t = await (await e.getTdContext()).rpc.getVersion();
444
- console.log(`${k} cli v0.57.1 (built 11/9/2026, 4:07:15 AM)`), console.log(`${k} rpc v${t}`), console.log("");
446
+ console.log(`${k} cli v0.57.3 (built 11/9/2026, 5:32:03 PM)`), console.log(`${k} rpc v${t}`), console.log("");
445
447
  }
446
448
  function N(e) {
447
449
  return r.resolve(e ?? process.cwd());
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- export { t as cli } from "./cli-aIilXlJS.js";
1
+ export { t as cli } from "./cli-C2MIZ1lV.js";
@@ -1,3 +1,3 @@
1
1
  import { i as e, l as t, n, o as r, r as i, s as a, t as o } from "../useSidebarConfig-0kMemgUS.js";
2
- import { S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, l as g, m as _, o as v, p as y, s as b, u as x, v as S, x as C, y as w } from "../app-D-dbbyVD.js";
2
+ import { S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, l as g, m as _, o as v, p as y, s as b, u as x, v as S, x as C, y as w } from "../app-C-C48izb.js";
3
3
  export { o as SIDEBAR_COLLAPSED_WIDTH, n as SIDEBAR_DEFAULT_WIDTH, i as SIDEBAR_MAX_WIDTH, e as SIDEBAR_MIN_WIDTH, s as TdBrandIcon, w as TdContentNav, b as TdDirectoryIndex, S as TdFooter, v as TdGlossaryIndex, u as TdKbdShortcut, C as TdKeyName, g as TdLayout, d as TdNotFound, _ as TdPreviousNext, p as TdRail, f as TdThemeToggle, y as TdToc, l as default, h as isTypingTarget, a as useClientPreferences, x as useCopyCode, m as useGlobalHotkey, c as useLocalHotkeys, r as useSidebarConfig, t as useTheme };
package/dist/client.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { l as e } from "./useSidebarConfig-0kMemgUS.js";
2
- import { C as t, T as n, i as r, n as i, r as a, t as o, w as s } from "./app-D-dbbyVD.js";
2
+ import { C as t, T as n, i as r, n as i, r as a, t as o, w as s } from "./app-C-C48izb.js";
3
3
  export { t as Content, o as createTypedownApp, s as useRoute, n as useRouter, i as useSiteConfig, a as useSiteData, r as useTdContent, e as useTheme };
@@ -118,50 +118,53 @@ async function f(e, t = 5) {
118
118
  }
119
119
  // src/node/context.ts
120
120
  var p = ["typedown.yaml", "typedown.yml"];
121
- function m(e) {
122
- let t = new c(_(e));
123
- function r() {
121
+ function m(e, { verbose: t = !1 } = {}) {
122
+ let r = new c(_(e));
123
+ function a() {
124
124
  let e = n("warn");
125
125
  return {
126
126
  ...e,
127
127
  info(e) {
128
- t.writeToFile("VITE", e);
128
+ r.writeToFile("VITE", e);
129
129
  },
130
- warn(n) {
131
- e.warn(n), t.writeToFile("VITE:WARN", n);
130
+ warn(t) {
131
+ e.warn(t), r.writeToFile("VITE:WARN", t);
132
132
  },
133
- error(n) {
134
- e.error(n), t.writeToFile("VITE:ERROR", n);
133
+ error(t) {
134
+ e.error(t), r.writeToFile("VITE:ERROR", t);
135
135
  }
136
136
  };
137
137
  }
138
- let a, s, l, d = !1;
139
- function f() {
140
- t.log(""), h(), process.exit(0);
141
- }
138
+ let s, l, d, f = !1;
142
139
  function p() {
143
- h();
144
- }
145
- async function m() {
146
- if (a) return a;
147
- process.on("SIGINT", f), process.on("SIGTERM", f), s = new i({ root: e }), await new Promise((e, t) => {
148
- s?.once("error", t), s?.listen(() => {
149
- s?.removeListener("error", t), e();
140
+ r.log(""), g(), process.exit(0);
141
+ }
142
+ function m() {
143
+ g();
144
+ }
145
+ async function h() {
146
+ if (s) return s;
147
+ process.on("SIGINT", p), process.on("SIGTERM", p), l = new i({
148
+ root: e,
149
+ verbose: t
150
+ }), await new Promise((e, t) => {
151
+ l?.once("error", t), l?.listen(() => {
152
+ l?.removeListener("error", t), e();
150
153
  });
151
154
  });
152
- let t = s.host, n = s.port;
153
- if (t === void 0 || n === void 0) throw Error("RPC server started but host/port not available");
154
- return l = await o.connectTcp(t, n), a = new u(l), s.unref(), process.on("exit", p), a;
155
+ let n = l.host, r = l.port;
156
+ if (n === void 0 || r === void 0) throw Error("RPC server started but host/port not available");
157
+ return d = await o.connectTcp(n, r), s = new u(d), l.unref(), process.on("exit", m), s;
155
158
  }
156
- function h() {
157
- d || (d = !0, process.removeListener("exit", p), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), l?.dispose(), s?.close(), a = void 0, s = void 0, l = void 0);
159
+ function g() {
160
+ f || (f = !0, process.removeListener("exit", m), process.removeListener("SIGINT", p), process.removeListener("SIGTERM", p), d?.dispose(), l?.close(), s = void 0, l = void 0, d = void 0);
158
161
  }
159
162
  return {
160
163
  root: e,
161
- logger: t,
162
- getTdContext: m,
163
- createViteLogger: r,
164
- dispose: h
164
+ logger: r,
165
+ getTdContext: h,
166
+ createViteLogger: a,
167
+ dispose: g
165
168
  };
166
169
  }
167
170
  function h(t) {
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-ltcrEmat.js";
2
- import { t as s } from "./cli-aIilXlJS.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-Bd6MPoKO.js";
2
+ import { t as s } from "./cli-C2MIZ1lV.js";
3
3
  export { n as PAGES_ID, i as PAGE_DATA_EVENT, t as SEARCH_INDEX_ID, e as SITE_DATA_ID, r as THEME_ID, a as buildSite, s as cli, o as typedown };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { t } from "./context-CPrHBM3S.js";
2
+ import { t } from "./context-CLKZYp4U.js";
3
3
  import { a as n, i as r, n as i, r as a, t as o } from "./brand-BSCRFcrY.js";
4
4
  import s from "node:path";
5
5
  import c from "node:fs/promises";
@@ -769,7 +769,7 @@ function Ze(e) {
769
769
  check: "typerighter check"
770
770
  },
771
771
  devDependencies: {
772
- typerighter: "^0.57.1",
772
+ typerighter: "^0.57.3",
773
773
  typescript: "^5.0.0"
774
774
  }
775
775
  }, void 0, 2) + "\n";
@@ -1,5 +1,5 @@
1
- import { type InlineConfig } from 'vite';
2
- import type { AppContext } from '../context';
1
+ import { type InlineConfig } from "vite";
2
+ import type { AppContext } from "../context";
3
3
  export interface BuildOptions {
4
4
  /** Output directory for the final build (default: "dist") */
5
5
  outDir?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAqBd,OAAO,KAAK,EACV,UAAU,EACX,MAAM,YAAY,CAAC;AAMpB,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwN3F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAwBhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAC7B,GAAG,EAAE,UAAU,EACf,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAqQf"}
@@ -0,0 +1,3 @@
1
+ import type { TdSidebarItem } from '@typerighter/rpc-client';
2
+ export declare function buildLlmsTxt(items: TdSidebarItem[], base: string, origin: string, siteTitle: string, siteDescription: string | undefined): string;
3
+ //# sourceMappingURL=llms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llms.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/llms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,yBAAyB,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,MAAM,CA6CR"}
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAAE,QAAQ,EACjB,MAAM,oBAAoB,CAAC;AAU5B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAGD,wBAAgB,YAAY,CAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CA8BnG"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAAE,QAAQ,EACjB,MAAM,oBAAoB,CAAC;AAU5B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAGD,wBAAgB,YAAY,CAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAgCnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,SAiMlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,SAyMlB"}
@@ -9,6 +9,8 @@ export interface AppContext {
9
9
  dispose: () => void;
10
10
  }
11
11
  export declare const CONFIG_FILE_NAMES: string[];
12
- export declare function createAppContext(root: string): AppContext;
12
+ export declare function createAppContext(root: string, { verbose, }?: {
13
+ verbose?: boolean;
14
+ }): AppContext;
13
15
  export declare function resolveProjectRoot(from: string): string;
14
16
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/node/context.ts"],"names":[],"mappings":"AAEA,OAAO,EACS,KAAK,MAAM,EAC1B,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,UAG7B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAsG1D;AAGD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAaxD"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/node/context.ts"],"names":[],"mappings":"AAEA,OAAO,EACS,KAAK,MAAM,EAC1B,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,UAG7B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,MAAM,EAAE,EAC9C,OAAe,GAChB,GAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAC;CACd,GAAG,UAAU,CAuGlB;AAGD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAaxD"}
@@ -1,12 +1,12 @@
1
- import { F as e, J as t, Y as n, c as r, i, k as a, x as o } from "./shared-dB08amQA.js";
2
- import { a as s, c } from "./useSidebarConfig-0kMemgUS.js";
1
+ import { E as e, F as t, J as n, Y as r, c as i, i as a, k as o, x as s } from "./shared-dB08amQA.js";
2
+ import { a as c, c as l } from "./useSidebarConfig-0kMemgUS.js";
3
3
  // src/client/theme-default/composables/client-preferences/index.ts
4
- function l() {
5
- return c() + s();
4
+ function u() {
5
+ return l() + c();
6
6
  }
7
7
  // src/node/lib/html-template.ts
8
- function u(e) {
9
- let t = r(e.title), n = r(e.description), i = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${t} - ${r(e.siteTitle)}` : t, a = e.origin ?? "", o = e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${r(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${r(o)}">`, u = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, d = e.author === void 0 ? "" : `\n <meta name="author" content="${r(e.author)}">`, f = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${r(e.siteTitle)}">`, p = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : r(e.siteTitle)}" href="${a}${e.base}feed.xml">`, m = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), h = e.headExtra === void 0 ? "" : e.headExtra + "\n";
8
+ function d(e) {
9
+ let t = i(e.title), n = i(e.description), r = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${t} - ${i(e.siteTitle)}` : t, a = e.origin ?? "", o = e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${i(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${i(o)}">`, l = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, d = e.author === void 0 ? "" : `\n <meta name="author" content="${i(e.author)}">`, f = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${i(e.siteTitle)}">`, p = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : i(e.siteTitle)}" href="${a}${e.base}feed.xml">`, m = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), h = e.headExtra === void 0 ? "" : e.headExtra + "\n";
10
10
  return `<!DOCTYPE html>
11
11
  <html lang="${e.lang ?? "en"}">
12
12
  <head>
@@ -14,21 +14,21 @@ function u(e) {
14
14
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
15
15
  <meta name="generator" content="Typerighter">
16
16
  <meta name="robots" content="index, follow">
17
- <title>${i}</title>
17
+ <title>${r}</title>
18
18
  <meta name="description" content="${n}">${d}${s}
19
19
  <link rel="icon" href="${e.base}favicon.svg" type="image/svg+xml">
20
20
  <link rel="apple-touch-icon" href="${e.base}apple-touch-icon.png">${p}
21
21
  <meta property="og:type" content="${e.ogType ?? "article"}">${f}${c}
22
22
  <meta property="og:title" content="${t}">
23
23
  <meta property="og:description" content="${n}">
24
- <meta property="og:image" content="${r(u)}">
24
+ <meta property="og:image" content="${i(l)}">
25
25
  <meta name="twitter:card" content="summary_large_image">
26
26
  <meta name="twitter:title" content="${t}">
27
27
  <meta name="twitter:description" content="${n}">
28
- <meta name="twitter:image" content="${r(u)}">${m}
28
+ <meta name="twitter:image" content="${i(l)}">${m}
29
29
  <script>
30
30
  (function () {
31
- ${l()}
31
+ ${u()}
32
32
  })()
33
33
  <\/script>
34
34
  ${h} </head>
@@ -39,7 +39,7 @@ ${h} </head>
39
39
  </html>`;
40
40
  }
41
41
  // src/node/build/seo/jsonld.ts
42
- function d(e) {
42
+ function f(e) {
43
43
  return JSON.stringify({
44
44
  "@context": "https://schema.org",
45
45
  "@type": "Article",
@@ -53,7 +53,7 @@ function d(e) {
53
53
  ...e.dateModified === void 0 ? {} : { dateModified: e.dateModified }
54
54
  });
55
55
  }
56
- function f(e) {
56
+ function p(e) {
57
57
  return JSON.stringify({
58
58
  "@context": "https://schema.org",
59
59
  "@type": "WebSite",
@@ -61,15 +61,15 @@ function f(e) {
61
61
  url: e.canonicalUrl
62
62
  });
63
63
  }
64
- function p(e) {
65
- let { pageRoute: t, title: r, origin: i = "" } = e, s = a(t), c = o(e.base);
64
+ function m(e) {
65
+ let { pageRoute: t, title: n, origin: i = "" } = e, a = o(t), c = s(e.base);
66
66
  if (t === "/") return;
67
67
  let l = t.split("/").filter(Boolean), u = l.map((e, t) => {
68
- let a = t === l.length - 1, o = a && s ? l.slice(0, t) : l.slice(0, t + 1), u = o.length > 0 ? `${i}${c}${o.join("/")}` : `${i}${c}`;
68
+ let o = t === l.length - 1, s = o && a ? l.slice(0, t) : l.slice(0, t + 1), u = s.length > 0 ? `${i}${c}${s.join("/")}` : `${i}${c}`;
69
69
  return {
70
70
  "@type": "ListItem",
71
71
  position: t + 1,
72
- name: a ? r : n(e),
72
+ name: o ? n : r(e),
73
73
  item: u
74
74
  };
75
75
  });
@@ -80,38 +80,38 @@ function p(e) {
80
80
  });
81
81
  }
82
82
  // src/node/build/seo/page.ts
83
- var m = 160;
84
- function h(t, n, r) {
85
- let a = t.seoMetadata?.title ?? t.title, o = g(t), s = n === "/", c = (r.origin ?? "") + r.base + e(n), l = t.fileMetadata?.mtimeSecs === void 0 ? void 0 : i(t.fileMetadata.mtimeSecs * 1e3), u = [s ? f({
86
- title: a,
87
- canonicalUrl: c
88
- }) : d({
89
- title: a,
90
- description: o,
91
- canonicalUrl: c,
92
- author: r.author,
93
- dateModified: l
94
- }), p({
95
- pageRoute: n,
96
- title: a,
97
- origin: r.origin,
98
- base: r.base
83
+ var h = 160;
84
+ function g(n, r, i) {
85
+ let s = n.seoMetadata?.title ?? n.title, c = _(n), l = o(r) ? e(r) + "/" : r, u = l === "/", d = (i.origin ?? "") + i.base + t(l), h = n.fileMetadata?.mtimeSecs === void 0 ? void 0 : a(n.fileMetadata.mtimeSecs * 1e3), g = [u ? p({
86
+ title: s,
87
+ canonicalUrl: d
88
+ }) : f({
89
+ title: s,
90
+ description: c,
91
+ canonicalUrl: d,
92
+ author: i.author,
93
+ dateModified: h
94
+ }), m({
95
+ pageRoute: r,
96
+ title: s,
97
+ origin: i.origin,
98
+ base: i.base
99
99
  })].filter((e) => e !== void 0);
100
100
  return {
101
- title: a,
102
- description: o,
103
- canonicalUrl: c,
104
- isHomepage: s,
105
- ogType: s ? "website" : "article",
106
- ogImagePath: t.seoMetadata?.image,
107
- jsonLdBlocks: u
101
+ title: s,
102
+ description: c,
103
+ canonicalUrl: d,
104
+ isHomepage: u,
105
+ ogType: u ? "website" : "article",
106
+ ogImagePath: n.seoMetadata?.image,
107
+ jsonLdBlocks: g
108
108
  };
109
109
  }
110
- function g(e) {
111
- return e.seoMetadata?.description === void 0 ? e.frontmatter.description === void 0 ? e.excerpt === void 0 ? _(e) : t(e.excerpt, m) : String(e.frontmatter.description) : e.seoMetadata.description;
112
- }
113
110
  function _(e) {
114
- let n = e.headings.filter((e) => e.level === 2).slice(0, 5).map((e) => e.title);
115
- return n.length === 0 ? t(e.title, m) : t(`${e.title}: ${n.join(", ")}`, m);
111
+ return e.seoMetadata?.description === void 0 ? e.frontmatter.description === void 0 ? e.excerpt === void 0 ? v(e) : n(e.excerpt, h) : String(e.frontmatter.description) : e.seoMetadata.description;
112
+ }
113
+ function v(e) {
114
+ let t = e.headings.filter((e) => e.level === 2).slice(0, 5).map((e) => e.title);
115
+ return t.length === 0 ? n(e.title, h) : n(`${e.title}: ${t.join(", ")}`, h);
116
116
  }
117
- export { u as n, h as t };
117
+ export { d as n, g as t };
@@ -1,5 +1,5 @@
1
1
  import { F as e } from "./shared-dB08amQA.js";
2
- import { n as t, t as n } from "./page-BbSO0VG8.js";
2
+ import { n as t, t as n } from "./page-ChF2owpa.js";
3
3
  import { pathToFileURL as r } from "node:url";
4
4
  import { parentPort as i, workerData as a } from "node:worker_threads";
5
5
  // src/node/build/prerenderWorker.ts