recent-notes
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Struchkov Mark 2024-09-07 00:20:29 +03:00
parent 130acb922e
commit 2e1d270837
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -37,7 +37,7 @@ export default ((userOpts?: Partial<Options>) => {
const remaining = Math.max(0, pages.length - opts.limit)
return (
<div class={classNames(displayClass, "recent-notes")}>
<span>{opts.title ?? i18n(cfg.locale).components.recentNotes.title}</span>
<h4>{opts.title ?? i18n(cfg.locale).components.recentNotes.title}</h4>
<ul class="recent-ul">
{pages.slice(0, opts.limit).map((page) => {
const title = page.frontmatter?.title ?? i18n(cfg.locale).propertyDefaults.title
@ -47,11 +47,11 @@ export default ((userOpts?: Partial<Options>) => {
<li class="recent-li">
<div class="section">
<div class="desc">
<h3>
<span>
<a href={resolveRelative(fileData.slug!, page.slug!)} class="internal">
{title}
</a>
</h3>
</span>
</div>
{page.dates && (
<p class="meta">