mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
Add missing changelog entries to content/pages/changelog-page.md: v1.34.0 (2025-12-26): Blog page featured layout with hero post - blogFeatured frontmatter field for posts - Hero card displays first featured post with landscape image - 2-column featured row for remaining featured posts - 3-column grid for regular posts v1.35.0 (2025-12-26): Image support at top of posts and pages - showImageAtTop frontmatter field - Full-width image display above post header - Works for both posts and pages v1.36.0 (2025-12-27): Social footer component - Customizable social links (8 platform types) - Copyright with auto-updating year - showSocialFooter frontmatter field for per-page control - Configurable via siteConfig.socialFooter v1.37.0 (2025-12-27): Newsletter Admin UI - Three-column admin interface at /newsletter-admin - Subscriber management with search and filters - Send newsletter panel (post selection or custom email) - Weekly digest automation (Sunday 9am UTC) - Developer notifications (subscriber alerts, weekly stats) - Markdown-to-HTML conversion for custom emails
40 lines
1023 B
TypeScript
40 lines
1023 B
TypeScript
import { cronJobs } from "convex/server";
|
|
import { internal } from "./_generated/api";
|
|
|
|
const crons = cronJobs();
|
|
|
|
// Clean up stale sessions every 5 minutes
|
|
crons.interval(
|
|
"cleanup stale sessions",
|
|
{ minutes: 5 },
|
|
internal.stats.cleanupStaleSessions,
|
|
{}
|
|
);
|
|
|
|
// Weekly digest: Send every Sunday at 9:00 AM UTC
|
|
// Posts from the last 7 days are included
|
|
// To disable, set weeklyDigest.enabled: false in siteConfig.ts
|
|
crons.cron(
|
|
"weekly newsletter digest",
|
|
"0 9 * * 0", // 9:00 AM UTC on Sundays
|
|
internal.newsletterActions.sendWeeklyDigest,
|
|
{
|
|
siteUrl: process.env.SITE_URL || "https://example.com",
|
|
siteName: process.env.SITE_NAME || "Newsletter",
|
|
}
|
|
);
|
|
|
|
// Weekly stats summary: Send every Monday at 9:00 AM UTC
|
|
// Includes subscriber count, new subscribers, newsletters sent
|
|
crons.cron(
|
|
"weekly stats summary",
|
|
"0 9 * * 1", // 9:00 AM UTC on Mondays
|
|
internal.newsletterActions.sendWeeklyStatsSummary,
|
|
{
|
|
siteName: process.env.SITE_NAME || "Newsletter",
|
|
}
|
|
);
|
|
|
|
export default crons;
|
|
|