mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-05-12 06:16:55 +00:00
prefetch sites on hovering their links in navbar
This commit is contained in:
@@ -21,7 +21,7 @@ const allPosts= posts.sort((a, b) => new Date(b.data.publishDate).valueOf() - ne
|
||||
{ index !== 0 && <hr /> }
|
||||
<div class="post-item">
|
||||
<h2>
|
||||
<a href={href}>{post.data.title}</a>
|
||||
<a data-astro-prefetch href={href}>{post.data.title}</a>
|
||||
</h2>
|
||||
<div class="tags">
|
||||
{post.data.tags.map(item => (
|
||||
|
||||
Reference in New Issue
Block a user