VF
Size: a a a
VF
E
AK
C
P
IK
ОД
IK
IT
query DefaultSEOQuery($path: String) {
site {
siteMetadata {
title
description
author
}
}
markdownRemark(frontmatter: {path: {eq: $path}}) {
frontmatter {
coverImage {
childImageSharp {
fluid(maxWidth: 800) {
src
}
}
}
}
}
}
AK
А
query DefaultSEOQuery($path: String) {
site {
siteMetadata {
title
description
author
}
}
markdownRemark(frontmatter: {path: {eq: $path}}) {
frontmatter {
coverImage {
childImageSharp {
fluid(maxWidth: 800) {
src
}
}
}
}
}
}
IT
export const pageQuery = graphql`
query($path: String) {
markdownRemark(frontmatter: { path: { eq: $path } }) {
frontmatter {
title
date(formatString: "DD MMMM YYYY", locale: "ru")
path
author
excerpt
tags
coverImage {
childImageSharp {
fluid(maxWidth: 800) {
...GatsbyImageSharpFluid
}
}
}
}
id
html
excerpt
}
}
`
А
IT
IT
const BlogPostTemplate = ({ data, pageContext }) => {
const {
frontmatter: { title, date, path, author, coverImage, excerpt, tags },
excerpt: autoExcerpt,
id,
html,
} = data.markdownRemark
const { next, previous } = pageContext
IT
А
IT