Fix project meta.

This commit is contained in:
Kevin Kandlbinder 2020-12-21 21:31:20 +01:00
parent dc051461c6
commit 734e38cb7f
2 changed files with 3 additions and 1 deletions

View file

@ -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";

View file

@ -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>