This commit is contained in:
parent
130acb922e
commit
2e1d270837
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user