1

Gérer le statut draft pour Lemmy et la météo

This commit is contained in:
2026-03-04 23:51:12 +01:00
parent 267f580648
commit a849a21e59
6 changed files with 436 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ const { parseFrontmatterDate } = require("./lib/datetime");
const { readFrontmatterFile } = require("./lib/frontmatter");
const { loadEnv } = require("./lib/env");
const { loadToolsConfig } = require("./lib/config");
const { isEffectivelyPublished } = require("./lib/publication");
const CONTENT_ROOT = path.join(__dirname, "..", "content");
const DEFAULT_DATABASE_URL = "postgres:///lemmy?host=/run/postgresql&user=richard";
@@ -207,6 +208,9 @@ function collectArticlesWithPostId(bundles) {
if (!frontmatter) {
continue;
}
if (isEffectivelyPublished(frontmatter.data) === false) {
continue;
}
const publication = parseFrontmatterDate(frontmatter.data?.date);
if (!publication) {
continue;