Skip to content

Commit

Permalink
Merge branch 'main' into jennifer/semantic-html
Browse files Browse the repository at this point in the history
  • Loading branch information
iris-i authored Jul 15, 2021
2 parents 556011b + 760740c commit 2864211
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 245 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
url: `https://civicactions.com/`,
siteUrl: `https://civicactions.com/`,
twitterUsername: '@CivicActions',
image: 'ca-extended-logo.svg',
image: 'default-og-image.png',
},
pathPrefix: `/civicactions-homesite`,
plugins: [
Expand Down
11 changes: 7 additions & 4 deletions src/components/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ import { Helmet } from 'react-helmet';
import { useLocation } from '@reach/router';
import { useStaticQuery, graphql } from 'gatsby';


const SEO = ({ title, description, image, article }) => {
const { pathname } = useLocation();
const { site } = useStaticQuery(query);
const {
defaultTitle,
titleTemplate,
defaultDescription,
siteUrl,
defaultImage,
twitterUsername,
} = site.siteMetadata;

const seo = {
title: (`${title || defaultTitle} | CivicActions`),
description: description || defaultDescription,
image: image || `${siteUrl}${defaultImage}`,
url: `${siteUrl}${pathname}`,
image: `${siteUrl}${(image || defaultImage)}`,
url: `${siteUrl}${pathname.slice(1)}`,
};

return (
<Helmet
htmlAttributes={{ lang: 'en' }}
Expand Down Expand Up @@ -49,18 +49,21 @@ const SEO = ({ title, description, image, article }) => {
);
};
export default SEO;

SEO.propTypes = {
title: PropTypes.string,
description: PropTypes.string,
image: PropTypes.string,
article: PropTypes.bool,
};

SEO.defaultProps = {
title: null,
description: null,
image: null,
article: false,
};

const query = graphql`
query SEO {
site {
Expand Down
17 changes: 12 additions & 5 deletions src/pages/team.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import '../sass/styles.scss';
import { graphql, useStaticQuery } from 'gatsby';
import React, { useState } from 'react';

import RedLayout from '../layouts/red';
import TeaserGrid from '../components/teaser-grid.js';
import StaffQuote from '../components/staff-quote.js';
import Hero from '../components/hero.js';
import { graphql, useStaticQuery } from 'gatsby';
import alanaCaseyProfilePicture from '../files/images/alanna_casey_profile.jpg';
import LinkButton from '../components/link-button';
import SEO from '../components/seo';
import PrimaryPageCTA from "../components/primary-page-cta";

import alanaCaseyProfilePicture from '../files/images/alanna_casey_profile.jpg';
import careersOgImage from '../../static/careers-og-image.png'

import '../sass/styles.scss';

const TeamPage = () => {
const data = useStaticQuery(graphql`
{
Expand Down Expand Up @@ -67,7 +70,11 @@ const TeamPage = () => {
}
return (
<RedLayout>
<SEO title='Team' description='Meet the humans of CivicActions.' />
<SEO
title='Team'
description='Meet the humans of CivicActions.'
image={careersOgImage}
/>

<Hero
title='Meet the humans of CivicActions'
Expand Down
Loading

0 comments on commit 2864211

Please sign in to comment.