Skip to content

Commit

Permalink
Add data-nosnippet attribute to header and footer to prevent text f…
Browse files Browse the repository at this point in the history
…rom being included in search snippets
  • Loading branch information
jerboa88 committed Aug 15, 2024
1 parent a1fee17 commit f1f69e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SITE_METADATA = getSiteMetadata();
export function Footer() {
return (
<footer className="z-30 w-full shadow-lg backdrop-blur-md bg-glass">
<div className="mix-blend-overlay">
<div className="mix-blend-overlay" data-nosnippet>
<Divider />
<div className="flex flex-row justify-between items-center p-4 pb-4">
<nav className="flex flex-row justify-center tabs font-button">
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function Header({ expandTitle, sections }: Props) {

return (
<header {...headerClassNameProps}>
<div className="mix-blend-overlay">
<div className="mix-blend-overlay" data-nosnippet>
<div {...containerClassNameProps}>
{!expandTitle && (
<motion.a href="/" {...layoutIdProp}>
Expand Down

0 comments on commit f1f69e7

Please sign in to comment.