feat(andreknie.de): improve accessibility and initial loading
This commit is contained in:
@@ -15,7 +15,7 @@ export default function Articles() {
|
||||
return (
|
||||
(post.title && post.title.toLowerCase().includes(query)) ||
|
||||
(post.excerpt && post.excerpt.toLowerCase().includes(query)) ||
|
||||
(post.body && post.body.toLowerCase().includes(query))
|
||||
(post.searchText && post.searchText.toLowerCase().includes(query))
|
||||
)
|
||||
})
|
||||
|
||||
@@ -84,7 +84,7 @@ export default function Articles() {
|
||||
)}
|
||||
<h2 className="article-title">{decodeHtml(post.title)}</h2>
|
||||
<p className="article-excerpt">
|
||||
{decodeHtml(post.excerpt || (post.body ? post.body.replace(/<[^>]+>/g, '').substring(0, 150) + '...' : ''))}
|
||||
{decodeHtml(post.excerpt || (post.searchText ? post.searchText.substring(0, 150) + '...' : ''))}
|
||||
</p>
|
||||
<div style={{ display: 'flex', gap: '16px' }}>
|
||||
<a href={`/artikel/${post.slug}`} className="article-link">
|
||||
|
||||
Reference in New Issue
Block a user