Deprecate descriptionPlaintext field
This commit is contained in:
parent
a713adc1ec
commit
688f9b982d
27 changed files with 64 additions and 121 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue