Skip to content

Commit

Permalink
Add secret flag
Browse files Browse the repository at this point in the history
  • Loading branch information
guicheffer committed Nov 6, 2023
1 parent bdd3b49 commit 7722cad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .me/src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import avatar from '../assets/images/avatar-2.jpeg';

class Layout extends Component {
render() {
const { children } = this.props;
const { children, secret } = this.props;

return (
<StaticQuery
query={graphql`
Expand Down Expand Up @@ -48,6 +49,8 @@ class Layout extends Component {
/>
<meta property="og:image" content={avatar} />

{ secret && <meta name="robots" content="noindex"/>}

{/* Twitter Meta Tags */}
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="guicheffer.me" />
Expand Down
2 changes: 1 addition & 1 deletion .me/src/pages/surpresa-pra-luiza.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const TOLU = () => {
}, []);

return (
<Layout>
<Layout secret="lu">
<main className="luiza-container">
<header>
<picture className="picture">
Expand Down

0 comments on commit 7722cad

Please sign in to comment.