Code with Syntax Highlighting with PrismJS edited
By Emil Lamprecht
Last Update on: August 16th 2023
Code Highlighting
import React from "react";
import { Link, useStaticQuery, graphql } from "gatsby";
import Navigation from "../components/navigation";
export default ({ children }) => {
const data = useStaticQuery(
graphql`
query {
site {
siteMetadata {
title
}
}
}
`
);
return (
<div className="site-wrapper">
<header className="site-header">
<div className="site-title">
<Link to="/">{data.site.siteMetadata.title}</Link>
</div>
<Navigation />
</header>
{children}
</div>
);
};