Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hugo/data/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
browse.json
author_index.json
channels-stats.json
channels_stats.json
5 changes: 4 additions & 1 deletion scripts/fetch-channels-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { mkdirSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';

const CAP_BASE = process.env.CAP_BASE_URL || 'http://localhost:4004';
const OUT_PATH = join('hugo', 'data', 'channels-stats.json');
// Underscore filename: Hugo exposes data files under their literal basename
// (no hyphen→underscore conversion), and the health layout reads
// `.Site.Data.channels_stats`. Matches sibling convention (channel_collections.json).
const OUT_PATH = join('hugo', 'data', 'channels_stats.json');

let payload: {
total: number; publishedCount: number;
Expand Down
Loading