mirror of
https://github.com/lbr77/blog-astro.git
synced 2026-04-09 00:19:12 +00:00
format
This commit is contained in:
@@ -63,8 +63,9 @@ const parentId = isCurrentSubpost ? getParentId(currentPostId) : currentPostId
|
||||
? `/blog/${parentId}#${heading.slug}`
|
||||
: `#${heading.slug}`
|
||||
}
|
||||
class="marker:text-foreground/30 list-none underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
|
||||
class="marker:text-foreground/30 list-none truncate underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
|
||||
data-heading-link={heading.slug}
|
||||
title={heading.text}
|
||||
>
|
||||
{heading.text}
|
||||
</a>
|
||||
@@ -93,12 +94,13 @@ const parentId = isCurrentSubpost ? getParentId(currentPostId) : currentPostId
|
||||
? '#'
|
||||
: `/blog/${section.subpostId}`
|
||||
}
|
||||
class="marker:text-foreground/30 list-none underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
|
||||
class="marker:text-foreground/30 list-none truncate underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
|
||||
data-heading-link={
|
||||
section.subpostId === currentPostId
|
||||
? 'top'
|
||||
: `${section.subpostId}-top`
|
||||
}
|
||||
title={section.title}
|
||||
>
|
||||
{section.title}
|
||||
</a>
|
||||
@@ -119,12 +121,13 @@ const parentId = isCurrentSubpost ? getParentId(currentPostId) : currentPostId
|
||||
? `#${heading.slug}`
|
||||
: `/blog/${section.subpostId}#${heading.slug}`
|
||||
}
|
||||
class="marker:text-foreground/30 hover:text-foreground/60 list-none underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
|
||||
class="marker:text-foreground/30 hover:text-foreground/60 list-none truncate underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
|
||||
data-heading-link={
|
||||
section.subpostId === currentPostId
|
||||
? heading.slug
|
||||
: `${section.subpostId}-${heading.slug}`
|
||||
}
|
||||
title={heading.text}
|
||||
>
|
||||
{heading.text}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user