mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-17 01:52:02 +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 React from "react"
|
||||||
import Layout from "../layouts/default";
|
import Layout from "../layouts/default";
|
||||||
import { Trans, Link, useI18next } from "gatsby-plugin-react-i18next"
|
import { Trans, Link, useI18next } from "gatsby-plugin-react-i18next"
|
||||||
|
import { graphql } from 'gatsby'
|
||||||
|
|
||||||
import styles from "./projects.module.scss";
|
import styles from "./projects.module.scss";
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,12 @@ query GetProject($urlname: String!, $lang: String!) {
|
||||||
`
|
`
|
||||||
|
|
||||||
export default function ProjectTemplate({data}) {
|
export default function ProjectTemplate({data}) {
|
||||||
|
const {t} = useTranslation();
|
||||||
let project = data.allProjectsJson.nodes[0];
|
let project = data.allProjectsJson.nodes[0];
|
||||||
let projectName = project.name;
|
let projectName = project.name;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout description={project.shortDescription} title={t("project")+": "+projectName}>
|
||||||
<section className={styles.projectHeader}>
|
<section className={styles.projectHeader}>
|
||||||
<div>
|
<div>
|
||||||
<div className={styles.headerBackground} style={{backgroundImage: "url("+project.image.publicURL+")"}}></div>
|
<div className={styles.headerBackground} style={{backgroundImage: "url("+project.image.publicURL+")"}}></div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue