Update metadata.ts

This commit is contained in:
Nicolas 2024-10-16 23:37:07 -03:00
parent 8974230db4
commit 2ac50a16f5

View File

@ -74,6 +74,7 @@ export function extractMetadata(soup: CheerioAPI, url: string): Metadata {
const customMetadata: Record<string, string | string[]> = {};
try {
// TODO: remove this as it is redundant with the below implementation
title = soup("title").text() || null;
description = soup('meta[name="description"]').attr("content") || null;