You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
/* <--- Imports ---> */
|
|
import React from "react"
|
|
import { graphql } from "gatsby"
|
|
import { Helmet } from "react-helmet"
|
|
import Layout from '../statComponents/Layout'
|
|
|
|
|
|
/* <--- Resources ---> */
|
|
import favicon from '../resources/favicon.ico'
|
|
import logo192 from '../resources/logo192.png'
|
|
|
|
export default function Template({
|
|
data, // this prop will be injected by the GraphQL query below.
|
|
}) {
|
|
const { markdownRemark } = data // data.markdownRemark holds your post data
|
|
const { frontmatter, html } = markdownRemark
|
|
return (
|
|
<Layout>
|
|
<Helmet htmlAttributes={{ lang: 'cs',}}>
|
|
<meta charSet="utf-8" />
|
|
<title>{frontmatter.pageTitle} - Studentská oborová rada IT PedF UK v Praze</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="#000000" />
|
|
<link rel="icon" href={favicon}/>
|
|
<link rel="apple-touch-icon" href={logo192} />
|
|
</Helmet>
|
|
<div
|
|
className="mainContent"
|
|
dangerouslySetInnerHTML={{ __html: html }}
|
|
/>
|
|
</Layout>
|
|
)
|
|
}
|
|
|
|
export const pageQuery = graphql`
|
|
query($id: String!) {
|
|
markdownRemark(id: { eq: $id }) {
|
|
html
|
|
frontmatter {
|
|
slug
|
|
pageTitle
|
|
}
|
|
}
|
|
}
|
|
` |