Skip to content

Commit

Permalink
improvement: algolia search anchors (#115)
Browse files Browse the repository at this point in the history
* feat: improvement algolia search, anchoring

* feat: improvement algolia search, anchoring
  • Loading branch information
nsdonato authored Mar 31, 2024
1 parent 09883d6 commit de8b8ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ type HeaderProps = {
export const Header = ({ title, description, href }: HeaderProps) => {
return (
<header>
<h1
id={`${href ?? title}`}
className='text-5xl font-bold mb-10 underline underline-offset-8 decoration-pink-500 block'>
<a className='pointer-events-none' href={`#${href ?? title}`}>
{title}
</a>
<h1 className='text-5xl font-bold mb-10 underline underline-offset-8 decoration-pink-500 block'>
{title}
</h1>
{description.map((parrafo, index) => (
<p key={index} className='text-balance last-of-type:pt-4'>
Expand Down

0 comments on commit de8b8ec

Please sign in to comment.