Skip to content

Commit

Permalink
πŸ§˜πŸΌβ€β™€οΈ flexibility (#22)
Browse files Browse the repository at this point in the history
* update functionality.

* add example project.

* handle empty facebook and twitter fields.

* testing overrides.

* fix twitter bug. update docs.

* fix twitter bug. update docs.

* lint and format.
  • Loading branch information
bradgarropy authored Aug 6, 2021
1 parent 81d7b4c commit 91887c7
Show file tree
Hide file tree
Showing 19 changed files with 17,683 additions and 13,901 deletions.
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# editor
.vscode

# dependencies
.cache
node_modules

# build
public

# host
.netlify

# secrets
.env*
6 changes: 6 additions & 0 deletions example/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
siteMetadata: {
title: "Gatsby Default Starter",
},
plugins: ["gatsby-plugin-react-helmet"],
}
15,080 changes: 15,080 additions & 0 deletions example/package-lock.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "gatsby-starter-default",
"private": true,
"description": "A simple starter to get up and developing quickly with Gatsby",
"version": "0.1.0",
"author": "Kyle Mathews <[email protected]>",
"dependencies": {
"gatsby": "^3.11.0",
"gatsby-plugin-react-helmet": "^4.11.0",
"gatsby-source-filesystem": "^3.11.0",
"gatsby-transformer-sharp": "^3.11.0",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-helmet": "^6.1.0"
},
"devDependencies": {
"prettier": "2.3.2"
},
"keywords": [
"gatsby"
],
"license": "0BSD",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "npm run develop",
"serve": "gatsby serve",
"clean": "gatsby clean"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}
42 changes: 42 additions & 0 deletions example/src/components/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import {Link} from "gatsby"
import PropTypes from "prop-types"
import * as React from "react"

const Header = ({siteTitle}) => (
<header
style={{
background: "rebeccapurple",
marginBottom: "1.45rem",
}}
>
<div
style={{
margin: "0 auto",
maxWidth: 960,
padding: "1.45rem 1.0875rem",
}}
>
<h1 style={{margin: 0}}>
<Link
to="/"
style={{
color: "white",
textDecoration: "none",
}}
>
{siteTitle}
</Link>
</h1>
</div>
</header>
)

Header.propTypes = {
siteTitle: PropTypes.string,
}

Header.defaultProps = {
siteTitle: "",
}

export default Header
Loading

0 comments on commit 91887c7

Please sign in to comment.