Skip to content

Commit

Permalink
feat: uses gatsby plugin for last updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 8, 2020
1 parent 73cf3fc commit 62f5bd4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
'gatsby-plugin-use-dark-mode',
'gatsby-plugin-sitemap',
'gatsby-plugin-meta-redirect',
'gatsby-plugin-build-date',
{
resolve: 'gatsby-plugin-newrelic',
options: {
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"eslint-plugin-react-hooks": "^4.0.4",
"gatsby": "^2.23.3",
"gatsby-image": "^2.4.9",
"gatsby-plugin-build-date": "^1.0.0",
"gatsby-plugin-google-tagmanager": "^2.3.5",
"gatsby-plugin-manifest": "^2.4.11",
"gatsby-plugin-mdx": "^1.2.14",
Expand Down
11 changes: 10 additions & 1 deletion src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext } from 'react';
import { Link } from 'gatsby';
import { Link, useStaticQuery, graphql } from 'gatsby';
import cx from 'classnames';
import ExternalLink from './ExternalLink';
import { PageContext } from './PageContext';
Expand All @@ -15,6 +15,15 @@ const Footer = ({ className }) => {
'src/markdown-pages/components'
);

const data = useStaticQuery(graphql`
query {
currentBuildDate {
currentDate
}
}
`);
console.log(data, 'footer');

return (
<footer className={cx(styles.footer, className)}>
<div className={styles.left}>
Expand Down

0 comments on commit 62f5bd4

Please sign in to comment.