bunki 0.19.3 → 0.19.5
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/dist/cli.js +5 -1
- package/dist/generators/pages.d.ts +6 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -36142,6 +36142,9 @@ async function generate404Page(config, outputDir) {
|
|
|
36142
36142
|
async function generateMapPage(site, config, outputDir) {
|
|
36143
36143
|
await generateOptionalPage("map.njk", { site: config, posts: site.posts }, outputDir, "map/index.html", "map page");
|
|
36144
36144
|
}
|
|
36145
|
+
async function generatePrivacyPage(config, outputDir) {
|
|
36146
|
+
await generateOptionalPage("privacy.njk", { site: config }, outputDir, "privacy/index.html", "privacy page");
|
|
36147
|
+
}
|
|
36145
36148
|
|
|
36146
36149
|
// src/generators/assets.ts
|
|
36147
36150
|
var {Glob: Glob2 } = globalThis.Bun;
|
|
@@ -36446,7 +36449,8 @@ Move any files from content/_assets/ into the correct year folder and retry.`);
|
|
|
36446
36449
|
generateTagPages(this.site, this.options.config, this.options.outputDir),
|
|
36447
36450
|
generateYearArchives(this.site, this.options.config, this.options.outputDir),
|
|
36448
36451
|
generateMapPage(this.site, this.options.config, this.options.outputDir),
|
|
36449
|
-
generate404Page(this.options.config, this.options.outputDir)
|
|
36452
|
+
generate404Page(this.options.config, this.options.outputDir),
|
|
36453
|
+
generatePrivacyPage(this.options.config, this.options.outputDir)
|
|
36450
36454
|
]);
|
|
36451
36455
|
this.metrics.startStage("assetCopying");
|
|
36452
36456
|
await copyStaticAssets(this.options.templatesDir, this.options.outputDir);
|
|
@@ -46,3 +46,9 @@ export declare function generate404Page(config: SiteConfig, outputDir: string):
|
|
|
46
46
|
* @param outputDir - Output directory
|
|
47
47
|
*/
|
|
48
48
|
export declare function generateMapPage(site: Site, config: SiteConfig, outputDir: string): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Generate privacy policy page (optional)
|
|
51
|
+
* @param config - Site configuration
|
|
52
|
+
* @param outputDir - Output directory
|
|
53
|
+
*/
|
|
54
|
+
export declare function generatePrivacyPage(config: SiteConfig, outputDir: string): Promise<void>;
|
package/dist/types.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ export interface SiteConfig {
|
|
|
133
133
|
copyright?: string;
|
|
134
134
|
/** Strict mode: fail build on parsing errors (default: false) */
|
|
135
135
|
strictMode?: boolean;
|
|
136
|
+
/** Google Analytics measurement ID (e.g., "G-XXXXXXXXXX"). If set, gtag.js is injected on every page. */
|
|
137
|
+
googleAnalyticsId?: string;
|
|
136
138
|
/**
|
|
137
139
|
* Configuration for content assets stored alongside markdown in content/{year}/{assetsDir}/.
|
|
138
140
|
* When set, `bunki images:push --content-assets` uses this config for uploads.
|
package/package.json
CHANGED