remove posts and fix rss images path

This commit is contained in:
juancmandev
2025-03-26 12:32:46 -06:00
parent 18c93ff3bb
commit 2b399b3ae1
25 changed files with 42 additions and 595 deletions

View File

@ -27,7 +27,12 @@ const meses = [
'Diciembre',
];
export default function formatDate(date: Date | string, lang: string) {
export default function formatDate(
date: Date | string | undefined,
lang: string
) {
if (date === undefined) return '';
const newDate = new Date(date);
const month = months[newDate.getMonth()];
const mes = meses[newDate.getMonth()];