Deprecate descriptionPlaintext field

This commit is contained in:
Bad Manners 2024-07-23 17:53:48 -03:00
parent a713adc1ec
commit 688f9b982d
27 changed files with 64 additions and 121 deletions

View file

@ -182,9 +182,9 @@ const thumbnail =
year: "numeric",
})}
data-pagefind-index-attrs="aria-description"
data-pagefind-meta={`date:${props.pubDate.toISOString().slice(undefined, 10)}`}
data-pagefind-meta={`date:${props.pubDate.toISOString().slice(0, 10)}`}
>
{t(props.lang, "story/publish_date", props.pubDate.toISOString().slice(undefined, 10))}
{t(props.lang, "story/publish_date", props.pubDate.toISOString().slice(0, 10))}
</p>
) : null
}

View file

@ -244,9 +244,9 @@ const wordCount = props.wordCount ? `${props.wordCount}` : "???";
year: "numeric",
})}
data-pagefind-index-attrs="aria-description"
data-pagefind-meta={`date:${props.pubDate.toISOString().slice(undefined, 10)}`}
data-pagefind-meta={`date:${props.pubDate.toISOString().slice(0, 10)}`}
>
{t(props.lang, "story/publish_date", props.pubDate.toISOString().slice(undefined, 10))}
{t(props.lang, "story/publish_date", props.pubDate.toISOString().slice(0, 10))}
</p>
) : null
}