Skip to content

Commit

Permalink
example remove helmet dependencie
Browse files Browse the repository at this point in the history
  • Loading branch information
benabel committed Mar 7, 2021
1 parent 69ffc07 commit eec9929
Show file tree
Hide file tree
Showing 7 changed files with 7,817 additions and 20,517 deletions.
1 change: 0 additions & 1 deletion example/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = {
},
pathPrefix: `/gatsby-plugin-elasticlunr-search`,
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
Expand Down
13,991 changes: 0 additions & 13,991 deletions example/package-lock.json

This file was deleted.

18 changes: 8 additions & 10 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@
"version": "1.0.0",
"author": "Benjamin Abel <[email protected]>",
"dependencies": {
"@gatsby-contrib/gatsby-plugin-elasticlunr-search": "^2.0.2",
"gatsby": "^2.0.19",
"gatsby-plugin-react-helmet": "^3.0.0",
"gatsby-source-filesystem": "^2.0.5",
"gatsby-transformer-remark": "^2.1.8",
"react": "^16.5.1",
"react-dom": "^16.5.1",
"react-helmet": "^5.2.0"
"@gatsby-contrib/gatsby-plugin-elasticlunr-search": "^2.4.2",
"gatsby": "^3.0.0",
"gatsby-source-filesystem": "^3.0.0",
"gatsby-transformer-remark": "^3.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
"keywords": [
"gatsby"
],
"license": "MIT",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "gatsby develop",
"test": "echo \"Error: no test specified\" && exit 1",
"publish": "gatsby build --prefix-paths && gh-pages -d public"
},
"devDependencies": {
"gh-pages": "^2.0.1"
"gh-pages": "^3.1.0"
},
"repository": {
"type": "git",
Expand Down
10 changes: 0 additions & 10 deletions example/src/components/layout.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import PropTypes from "prop-types"
import Helmet from "react-helmet"
import { StaticQuery, graphql } from "gatsby"

import Header from "./header"
Expand All @@ -19,15 +18,6 @@ const Layout = ({ children }) => (
`}
render={data => (
<div>
<Helmet
title={data.site.siteMetadata.title}
meta={[
{ name: `description`, content: `Sample` },
{ name: `keywords`, content: `sample, something` },
]}
>
<html lang="en" />
</Helmet>
<Header siteTitle={data.site.siteMetadata.title} />
<div
style={{
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class Search extends Component {
>
{this.state.results.map(page => (
<li key={page.id}>
<Link to={`/` + page.path}>{page.title}</Link>
<Link to={page.path}>{page.title}</Link>
{`: ` + page.tags.join(`,`)}
</li>
))}
Expand Down
2 changes: 0 additions & 2 deletions example/src/templates/md.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import PropTypes from "prop-types"
import Helmet from "react-helmet"

import { graphql } from "gatsby"

Expand All @@ -10,7 +9,6 @@ export default function Template({ data }) {
const { markdownRemark: post } = data
return (
<Layout>
<Helmet title={`Your Blog Name - ${post.frontmatter.title}`} />
<div>
<h1>{post.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.html }} />
Expand Down
Loading

0 comments on commit eec9929

Please sign in to comment.