mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
feat(resources): improve SEO by attaching excerpt as description
This commit is contained in:
@@ -9,11 +9,11 @@ import "katex/dist/katex.min.css"
|
||||
// @todo maybe find alternative type for data
|
||||
const LanguagePost: FC<any> = ({ data }) => {
|
||||
const { relativePath } = data.file
|
||||
const { html, fields, frontmatter, timeToRead } = data.file.post
|
||||
const { html, excerpt, fields, frontmatter, timeToRead } = data.file.post
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<SEO title={frontmatter.title} />
|
||||
<SEO title={frontmatter.title} description={excerpt} />
|
||||
<ResourceHeader
|
||||
relativePath={relativePath}
|
||||
title={frontmatter.title}
|
||||
@@ -36,6 +36,7 @@ export const query = graphql`
|
||||
relativePath
|
||||
post: childMarkdownRemark {
|
||||
html
|
||||
excerpt
|
||||
fields {
|
||||
authors {
|
||||
name
|
||||
|
||||
Reference in New Issue
Block a user