From 4db14e3d6911440e80bc66cbcb142355ce377a01 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Fri, 24 Sep 2021 16:15:08 +0200 Subject: [PATCH] Update home meta description --- src/pages/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/index.js b/src/pages/index.js index 673407d..f9472ab 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -13,6 +13,7 @@ import { StaticImage, GatsbyImage } from "gatsby-plugin-image"; import anime from "animejs"; import { ArrowRight, AtSign, Camera, Github, Mail, MapPin, Phone } from "lucide-react"; +import { useTranslation } from "react-i18next"; export const query = graphql` query GetMetaAndProjects($language: String) { @@ -75,6 +76,8 @@ export const query = graphql` `; const IndexPage = (props) => { + const {t} = useTranslation(); + React.useEffect(() => { if (typeof window === "undefined") return; @@ -109,7 +112,7 @@ const IndexPage = (props) => { let file = props.data.file; return ( - +