Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: gatsby@2.24.65
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gatsby@2.24.66
Choose a head ref

Commits on Sep 24, 2020

  1. Copy the full SHA
    4ac398f View commit details
  2. Copy the full SHA
    12576a7 View commit details
  3. Fix gatsby-cli changes for yarn2 (#27018)

    * check for current user agent
    
    * Update packages/gatsby-cli/src/init-starter.ts
    
    Co-authored-by: Maël Nison <nison.mael@gmail.com>
    
    Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
    Co-authored-by: Maël Nison <nison.mael@gmail.com>
    3 people authored Sep 24, 2020
    Copy the full SHA
    cfe0b8b View commit details

Commits on Sep 25, 2020

  1. chore(docs): add fonts and typography reference guide (#26176)

    * scaffold initial reference guide structure
    
    * flesh out using-local-fonts content
    
    * add using-web-fonts content
    
    * lints docs
    
    * adjust sidebar text formatting
    
    * add missing punctuation to using-web-fonts
    
    * suppress 2019 blog post lint warnings
    
    * Add link to Typography.js repo
    
    * Clarify where the value for the TYPEKIT_ID env var comes from
    
    * Remove unneeded CSS imports
    
    * Add guidance on when to use each guide
    
    Co-authored-by: Megan Sullivan <meganesulli@gmail.com>
    Co-authored-by: Megan Sullivan <megan@gatsbyjs.com>
    3 people authored Sep 25, 2020
    Copy the full SHA
    d0a50f8 View commit details
  2. chore: Update link to retext-smartypants (#27021)

    Co-authored-by: Lennart <lekoarts@gmail.com>
    samrobbins85 and LekoArts authored Sep 25, 2020
    Copy the full SHA
    2cdb694 View commit details
  3. Copy the full SHA
    299c9bb View commit details
  4. Copy the full SHA
    416dca7 View commit details
  5. Copy the full SHA
    22c62ee View commit details
  6. Copy the full SHA
    649c2b9 View commit details
  7. fix(docs): remove README.md not displaying on Gatsby plugin library (#…

    …27040)
    
    * README.md not displaying on Gatsby plugin library
    
    https://www.gatsbyjs.com/plugins/gatsby-plugin-postcss/
    
    * remove other readme
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    nbaosullivan and wardpeet authored Sep 25, 2020
    Copy the full SHA
    6987edb View commit details
  8. Copy the full SHA
    3d47dfa View commit details
  9. docs: readme (#27050)

    rahul3v authored Sep 25, 2020
    Copy the full SHA
    8afd46b View commit details
  10. Copy the full SHA
    83fafe4 View commit details
  11. chore: update some nonbreaking packages from the <1.0.0-minor Renovat…

    …e group (#26913)
    
    * chore: update axios, guess-webpack, js-combinatorics, jscodeshift, mini-css-extract-plugin, react-docgen, react-refresh, xlsx
    
    * chore(examples): update axios, babel-preset-gatsby, @reach/skip-nav
    
    * remove preact
    
    * revert renovate
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    hoobdeebla and wardpeet authored Sep 25, 2020
    Copy the full SHA
    10c4335 View commit details
  12. Copy the full SHA
    3dedadc View commit details
  13. fix(gatsby): set proper cacheIdentifier for babel (#26809)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    wardpeet and gatsbybot authored Sep 25, 2020
    Copy the full SHA
    e28d9ba View commit details
  14. chore(gatsby-transformer-csv): update csv processors (#27037)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    hoobdeebla and gatsbybot authored Sep 25, 2020
    Copy the full SHA
    636068e View commit details
  15. fix(gatsby): PageProps TS type: add params (#26974)

    * PageProps type: add `params`
    
    URL parameters when the page has a `matchPath`
    
    * `params` is actually always present
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    antoinerousseau and gatsbybot authored Sep 25, 2020
    Copy the full SHA
    026d49d View commit details
  16. chore(deps): update dependency cross-env to v7 (#27054)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 25, 2020
    Copy the full SHA
    b7d76d3 View commit details
  17. fix(gatsby-plugin-preact): use new babel plugin for better context co…

    …mpat (#26956)
    
    * use new babel plugin for better context compat
    
    * Update gatsby-node.js
    
    * Update gatsby-node.js
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    JoviDeCroock and gatsbybot authored Sep 25, 2020
    Copy the full SHA
    7f38209 View commit details

Commits on Sep 26, 2020

  1. chore(deps): update dependency lodash to ^4.17.20 (#27085)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 26, 2020
    Copy the full SHA
    69a4031 View commit details
  2. chore(deps): update dependency @babel/core to ^7.11.6 (#27066)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 26, 2020
    Copy the full SHA
    dd47e25 View commit details
  3. chore(deps): update dependency unified to ^9.2.0 (#27090)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 26, 2020
    Copy the full SHA
    9ba17f7 View commit details
  4. chore(deps): update dependency jest-matchmedia-mock to ^1.1.0 (#27084)

    * chore(deps): update dependency jest-matchmedia-mock to ^1.1.0
    
    * move jest-matchmedia mock
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    3 people authored Sep 26, 2020
    Copy the full SHA
    5619220 View commit details
  5. Copy the full SHA
    75b6f39 View commit details

Commits on Sep 27, 2020

  1. fix(gatsby-plugin-manifest): re-use domain connection (#26946)

    * fix(gatsby-plugin-manifest): re-use domain connection
    
    * fix tests
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    wardpeet and gatsbybot authored Sep 27, 2020
    Copy the full SHA
    6d0d2ef View commit details

Commits on Sep 28, 2020

  1. fix(deps): update minor and patch for gatsby-plugin-page-creator (#27130

    )
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    bc296ec View commit details
  2. chore(deps): update minor and patch for gatsby-legacy-polyfills (#27108)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    895a8c0 View commit details
  3. fix(deps): update minor and patch for gatsby-plugin-preload-fonts (#2…

    …7131)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    cd41e20 View commit details
  4. fix(deps): update minor and patch for gatsby-plugin-netlify-cms (#27129)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    8e52f2a View commit details
  5. fix(deps): update minor and patch for gatsby-plugin-less (#27122)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    1ef58b1 View commit details
  6. fix(deps): update minor and patch for gatsby-plugin-stylus (#27133)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    bce4713 View commit details
  7. fix(deps): update minor and patch for gatsby-source-filesystem (#27137)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    c369935 View commit details
  8. fix(deps): update minor and patch for gatsby-transformer-documentatio…

    …njs (#27146)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    d94937f View commit details
  9. chore(deps): update minor and patch for gatsby-core-utils (#27105)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    cbfbe4f View commit details
  10. chore(deps): update minor and patch for gatsby-cli (#27104)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    12bfa8f View commit details
  11. chore(deps): update dependency typescript to ^3.9.7 (#27089)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    7728d7b View commit details
  12. chore(deps): update minor and patch for gatsby-plugin-preact (#27110)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    e6b1a0f View commit details
  13. chore(deps): update minor and patch for gatsby-graphiql-explorer (#27107

    )
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    b7e2857 View commit details
  14. fix(gatsby-remark-autolink-headers): option to disable "position: rel…

    …ative" when icon is not present (#27022)
    parulc7 authored Sep 28, 2020
    Copy the full SHA
    8807fea View commit details
  15. Copy the full SHA
    587b33a View commit details
  16. chore(docs): Add props to MyParagraph (#27124)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    kai687 and gatsbybot authored Sep 28, 2020
    Copy the full SHA
    a52df81 View commit details
  17. Copy the full SHA
    f5124fa View commit details
  18. Copy the full SHA
    d92e8da View commit details
  19. updated https (#27051)

    dawood6 authored Sep 28, 2020
    Copy the full SHA
    e45b9f5 View commit details
  20. fix(deps): update minor and patch for gatsby-transformer-react-docgen (

    …#27147)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    d41e652 View commit details
  21. fix(deps): update minor and patch for gatsby-source-wikipedia (#27144)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    01846ed View commit details
  22. fix(deps): update minor and patch for gatsby-source-mongodb (#27141)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    971dfb7 View commit details
  23. fix(deps): update minor and patch for gatsby-transformer-remark (#27148)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    2cab85a View commit details
  24. fix(deps): update minor and patch for gatsby-remark-images (#27135)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 28, 2020
    Copy the full SHA
    817d062 View commit details
Showing 314 changed files with 5,428 additions and 1,650 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<a href="https://gatsbyjs.com">
<a href="https://www.gatsbyjs.com">
<img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
</a>
</p>
@@ -41,17 +41,17 @@
</p>

<h3 align="center">
<a href="https://gatsbyjs.com/docs/">Quickstart</a>
<a href="https://www.gatsbyjs.com/docs/">Quickstart</a>
<span> · </span>
<a href="https://gatsbyjs.com/tutorial/">Tutorial</a>
<a href="https://www.gatsbyjs.com/tutorial/">Tutorial</a>
<span> · </span>
<a href="https://gatsbyjs.com/plugins/">Plugins</a>
<a href="https://www.gatsbyjs.com/plugins/">Plugins</a>
<span> · </span>
<a href="https://gatsbyjs.com/starters/">Starters</a>
<a href="https://www.gatsbyjs.com/starters/">Starters</a>
<span> · </span>
<a href="https://gatsbyjs.com/showcase/">Showcase</a>
<a href="https://www.gatsbyjs.com/showcase/">Showcase</a>
<span> · </span>
<a href="https://gatsbyjs.com/contributing/how-to-contribute/">Contribute</a>
<a href="https://www.gatsbyjs.com/contributing/how-to-contribute/">Contribute</a>
<span> · </span>
Support: <a href="https://twitter.com/AskGatsbyJS">Twitter</a>
<span> & </span>
@@ -80,7 +80,7 @@ Gatsby is a modern web framework for blazing fast websites.
site on a CDN for a fraction of the cost of a server-rendered site. Many Gatsby sites can be
hosted entirely free on services like GitHub Pages and Netlify.

[**Learn how to use Gatsby for your next project.**](https://gatsbyjs.com/docs/)
[**Learn how to use Gatsby for your next project.**](https://www.gatsbyjs.com/docs/)

## What’s In This Document

@@ -124,36 +124,36 @@ You can get a new Gatsby site up and running on your local dev environment in 5

Your site is now running at `http://localhost:8000`. Open the `my-blazing-fast-site` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes, and the browser will update in real time!

At this point, you’ve got a fully functional Gatsby website. For additional information on how you can customize your Gatsby site, see our [plugins](https://gatsbyjs.com/plugins/) and [the official tutorial](https://gatsbyjs.com/tutorial/).
At this point, you’ve got a fully functional Gatsby website. For additional information on how you can customize your Gatsby site, see our [plugins](https://gatsbyjs.com/plugins/) and [the official tutorial](https://www.gatsbyjs.com/tutorial/).

## 🎓 Learning Gatsby

Full documentation for Gatsby lives [on the website](https://gatsbyjs.com/).
Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.com/).

- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://gatsbyjs.com/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.com/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.

- **To dive straight into code samples head [to our documentation](https://gatsbyjs.com/docs/).** In particular, check out the “<i>Guides</i>”, “<i>API Reference</i>”, and “<i>Advanced Tutorials</i>” sections in the sidebar.
- **To dive straight into code samples head [to our documentation](https://www.gatsbyjs.com/docs/).** In particular, check out the “<i>Guides</i>”, “<i>API Reference</i>”, and “<i>Advanced Tutorials</i>” sections in the sidebar.

We welcome suggestions for improving our docs. See the [“how to contribute”](https://gatsbyjs.com/contributing/how-to-contribute/) documentation for more details.
We welcome suggestions for improving our docs. See the [“how to contribute”](https://www.gatsbyjs.com/contributing/how-to-contribute/) documentation for more details.

**Start Learning Gatsby: [Follow the Tutorial](https://gatsbyjs.com/tutorial/) · [Read the Docs](https://gatsbyjs.com/docs/)**
**Start Learning Gatsby: [Follow the Tutorial](https://www.gatsbyjs.com/tutorial/) · [Read the Docs](https://www.gatsbyjs.com/docs/)**

## 💼 Migration Guides

Already have a Gatsby site? These handy guides will help you add the improvements of Gatsby v2 to your site without starting from scratch!

- [Migrate a Gatsby site from v1 to v2](https://gatsbyjs.com/docs/migrating-from-v1-to-v2/)
- Still on v0? Start here: [Migrate a Gatsby site from v0 to v1](https://gatsbyjs.com/docs/migrating-from-v0-to-v1/)
- [Migrate a Gatsby site from v1 to v2](https://www.gatsbyjs.com/docs/migrating-from-v1-to-v2/)
- Still on v0? Start here: [Migrate a Gatsby site from v0 to v1](https://www.gatsbyjs.com/docs/migrating-from-v0-to-v1/)

## ❗ Code of Conduct

Gatsby is dedicated to building a welcoming, diverse, safe community. We expect everyone participating in the Gatsby community to abide by our [**Code of Conduct**](https://gatsbyjs.com/contributing/code-of-conduct/). Please read it. Please follow it. In the Gatsby community, we work hard to build each other up and create amazing things together. 💪💜
Gatsby is dedicated to building a welcoming, diverse, safe community. We expect everyone participating in the Gatsby community to abide by our [**Code of Conduct**](https://www.gatsbyjs.com/contributing/code-of-conduct/). Please read it. Please follow it. In the Gatsby community, we work hard to build each other up and create amazing things together. 💪💜

## 🤝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Gatsby community! :muscle::purple_heart:

Check out our [**Contributing Guide**](https://gatsbyjs.com/contributing/how-to-contribute/) for ideas on contributing and setup steps for getting our repositories up and running on your local machine.
Check out our [**Contributing Guide**](https://www.gatsbyjs.com/contributing/how-to-contribute/) for ideas on contributing and setup steps for getting our repositories up and running on your local machine.

### A note on how this repository is organized

@@ -169,4 +169,4 @@ Licensed under the [MIT License](./LICENSE).

## 💜 Thanks

Thanks to our many contributors and to [Netlify](https://www.netlify.com/) for hosting [gatsbyjs.com](https://gatsbyjs.com) and our example sites.
Thanks to our many contributors and to [Netlify](https://www.netlify.com/) for hosting [GatsbyJs](https://www.gatsbyjs.com) and our example sites.
1 change: 0 additions & 1 deletion benchmarks/gabe-csv-markdown/gatsby-browser.js

This file was deleted.

43 changes: 20 additions & 23 deletions benchmarks/gabe-csv-markdown/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,52 +1,49 @@
const path = require(`path`)
const { createFilePath } = require(`gatsby-source-filesystem`)

const blogPost = path.resolve(`./src/templates/blog-post.js`)

exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions
const blogPost = path.resolve(`./src/templates/blog-post.js`)

const result = await graphql(
`
{
allMarkdownRemark(sort: null) {
edges {
node {
id
frontmatter {
slug
title
}
}
const result = await graphql(`
query {
allMarkdownRemark {
nodes {
id
frontmatter {
slug
title # used in prev/next
}
}
}
`
)
}
`)

if (result.errors) {
throw result.errors
}

// Create blog posts pages.
const posts = result.data.allMarkdownRemark.edges
const posts = result.data.allMarkdownRemark.nodes

posts.forEach((post, index) => {
posts.forEach(({ id, frontmatter: { slug } }, index) => {
const previous = index === posts.length - 1 ? null : posts[index + 1].node
const next = index === 0 ? null : posts[index - 1].node

createPage({
path: post.node.frontmatter.slug,
path: slug,
component: blogPost,
context: {
slug: post.node.frontmatter.slug,
id: post.node.id,
id,
slug,
previous,
next,
},
})
})
}

// Not sure if there is a better way than to create a proxy node for markdown to pick up
// I certainly can't get remark to to pick up csv nodes :(
exports.onCreateNode = ({ node, actions }) => {
const { createNode } = actions

@@ -58,7 +55,7 @@ exports.onCreateNode = ({ node, actions }) => {
type: `MarkdownProxy`,
mediaType: "text/markdown",
content: node.articleContent,
contentDigest: String(Math.random()),
contentDigest: node.articleContent,
},
})
}
6 changes: 4 additions & 2 deletions benchmarks/gabe-csv-markdown/gen.js
Original file line number Diff line number Diff line change
@@ -30,13 +30,15 @@ title: "${title.replace(/"/g, '\\"')}"
description: "${desc.replace(/"/g, '\\"')}"
slug: '${slug}'
date: ${date}
tags: [${tags}]
---
# ${title}
> ${desc}
${faker.lorem.paragraphs(2)}
${faker.lorem.paragraphs()}
${faker.lorem.paragraphs()}
`

// Note: you can only escape double quotes (by doubling them, not by backslash)
35 changes: 17 additions & 18 deletions benchmarks/gabe-csv-markdown/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -8,31 +8,30 @@ class BlogIndex extends React.Component {
render() {
const { data } = this.props
const siteTitle = data.site.siteMetadata.title
const posts = data.allMarkdownRemark.edges
const posts = data.allMarkdownRemark.nodes

return (
<Layout location={this.props.location} title={siteTitle}>
<Bio />
{posts.map(({ node }) => {
const title = node.frontmatter.title || node.frontmatter.slug
{posts.map(({ frontmatter: { title, slug, date, description } }) => {
return (
<article key={node.frontmatter.slug}>
<article key={slug}>
<header>
<h3
style={{
marginBottom: '5px',
marginBottom: "5px",
}}
>
<Link style={{ boxShadow: `none` }} to={'/' + node.frontmatter.slug}>
<Link style={{ boxShadow: `none` }} to={"/" + slug}>
{title}
</Link>
</h3>
<small>{node.frontmatter.date}</small>
<small>{date}</small>
</header>
<section>
<p
dangerouslySetInnerHTML={{
__html: node.frontmatter.description || node.excerpt,
__html: description,
}}
/>
</section>
@@ -53,16 +52,16 @@ export const pageQuery = graphql`
title
}
}
allMarkdownRemark(limit: 100) {
edges {
node {
excerpt
frontmatter {
slug
date(formatString: "MMMM DD, YYYY")
title
description
}
allMarkdownRemark(
limit: 100
sort: { fields: frontmatter___date, order: DESC }
) {
nodes {
frontmatter {
title
slug
date(formatString: "MMMM DD, YYYY")
description
}
}
}
39 changes: 10 additions & 29 deletions benchmarks/gabe-csv-markdown/src/templates/blog-post.js
Original file line number Diff line number Diff line change
@@ -6,37 +6,22 @@ import Layout from "../components/layout"

class BlogPostTemplate extends React.Component {
render() {
const post = this.props.data.markdownRemark
const {
html,
frontmatter: { title, date },
} = this.props.data.markdownRemark
const siteTitle = this.props.data.site.siteMetadata.title
const { previous, next } = this.props.pageContext

return (
<Layout location={this.props.location} title={siteTitle}>
<article>
<header>
<h1
style={{
marginTop: '5px',
marginBottom: 0,
}}
>
{post.frontmatter.title}
</h1>
<p
style={{
display: `block`,
marginBottom: '5px',
}}
>
{post.frontmatter.date}
</p>
<h1 style={{ marginTop: "5px", marginBottom: 0 }}>{title}</h1>
<p style={{ display: `block`, marginBottom: "5px" }}>{date}</p>
</header>
<section dangerouslySetInnerHTML={{ __html: post.html }} />
<hr
style={{
marginBottom: '5px',
}}
/>
<section dangerouslySetInnerHTML={{ __html: html }} />
<hr style={{ marginBottom: "5px" }} />
<footer>
<Bio />
</footer>
@@ -54,14 +39,14 @@ class BlogPostTemplate extends React.Component {
>
<li>
{previous && (
<Link to={'/' + previous.frontmatter.slug} rel="prev">
<Link to={"/" + previous.frontmatter.slug} rel="prev">
{previous.frontmatter.title}
</Link>
)}
</li>
<li>
{next && (
<Link to={'/' + next.frontmatter.slug} rel="next">
<Link to={"/" + next.frontmatter.slug} rel="next">
{next.frontmatter.title}
</Link>
)}
@@ -83,14 +68,10 @@ export const pageQuery = graphql`
}
}
markdownRemark(id: { eq: $id }) {
id
excerpt(pruneLength: 160)
html
frontmatter {
slug
title
date(formatString: "MMMM DD, YYYY")
description
}
}
}
Empty file.
Loading