mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 17:56:51 +02:00
Fix project meta.
This commit is contained in:
parent
dc051461c6
commit
734e38cb7f
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import React from "react"
|
||||
import Layout from "../layouts/default";
|
||||
import { Trans, Link, useI18next } from "gatsby-plugin-react-i18next"
|
||||
import { graphql } from 'gatsby'
|
||||
|
||||
import styles from "./projects.module.scss";
|
||||
|
||||
|
|
|
@ -27,11 +27,12 @@ query GetProject($urlname: String!, $lang: String!) {
|
|||
`
|
||||
|
||||
export default function ProjectTemplate({data}) {
|
||||
const {t} = useTranslation();
|
||||
let project = data.allProjectsJson.nodes[0];
|
||||
let projectName = project.name;
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Layout description={project.shortDescription} title={t("project")+": "+projectName}>
|
||||
<section className={styles.projectHeader}>
|
||||
<div>
|
||||
<div className={styles.headerBackground} style={{backgroundImage: "url("+project.image.publicURL+")"}}></div>
|
||||
|
|
Loading…
Add table
Reference in a new issue