This commit is contained in:
2025-08-21 18:02:34 -06:00
parent 1b28b1b8b4
commit 2c1587a006
11 changed files with 189 additions and 1 deletions

View File

@@ -37,11 +37,12 @@ function generateMarkdown() {
const currentYear = new Date().getFullYear();
let maintenance = "Actively Maintained";
let maintenance_year = "";
let description = document.getElementById('description').value;
if (updatedYear && currentYear - updatedYear > 5) {
maintenance = "Not Maintained";
maintenance_year = `updated_year = ${updatedYear}\n`;
description = `\{\{<inactive year="${updatedYear}">\}\}\n\n` + description
}
const description = document.getElementById('description').value;
let md = `+++
title = '${title}'
subtitle = '${subtitle}'
@@ -55,6 +56,7 @@ maintenance = [${JSON.stringify(maintenance)}]
${maintenance_year}draft = false
date = ${date}
+++\n\n`;
md += description;
document.getElementById('output').textContent = md;
}