Skip to content

Instantly share code, notes, and snippets.

View AndrewKepson's full-sized avatar

AndrewKepson

View GitHub Profile
@AndrewKepson
AndrewKepson / gatsbyseo.js
Created March 29, 2022 14:07
Gatsby SEO Component
import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
import { useSiteMetadata } from '../hooks/useSiteMetadata'
export const Seo = ({
title,
description,
meta = [],
canonical,
@AndrewKepson
AndrewKepson / home.js
Created March 29, 2022 14:04
Gatsby Home Page Example
import React from 'react'
import { graphql } from 'gatsby'
import { Layout, Seo, HomePageContent } from '../components/components'
const IndexPage = ({
data: {
wpPage: {
featuredImage: {
altText,