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
4 changes: 3 additions & 1 deletion scripts/check-blog-dates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* pubDate on new posts). Sitemap lastmod is derived from those fields.
*/
import { execFileSync } from 'node:child_process';
import { readFileSync } from 'node:fs';
import { existsSync, readFileSync } from 'node:fs';
import { frontmatterDate, frontmatterFlag } from './content-dates.mjs';

const base = process.env.BLOG_DATE_BASE_SHA ?? '';
Expand Down Expand Up @@ -58,6 +58,8 @@ if (!base) {
const problems = [];

for (const path of changedBlogFiles()) {
// Deletions are not indexed edits. A missing file has no lastmod to bump.
if (!existsSync(path)) continue;
const nextFm = readFileSync(path, 'utf8').split('---')[1] ?? '';
if (frontmatterFlag(nextFm, 'noindex') || frontmatterFlag(nextFm, 'draft')) continue;

Expand Down
106 changes: 0 additions & 106 deletions src/content/blog/ai-ml-security-cloud.md

This file was deleted.

107 changes: 0 additions & 107 deletions src/content/blog/apra-cps-234-cloud-security-compliance.md

This file was deleted.

Loading
Loading