diff --git a/gatsby-config.js b/gatsby-config.js index 9516e34..3850a3e 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -17,6 +17,7 @@ module.exports = { // Optional: Resume URL resume: `https://ashwin-docs.s3.amazonaws.com/ashwin-elangovan-resume.pdf`, fullResume: `https://ashwin-docs.s3.amazonaws.com/ashwin-elangovan-full-resume.pdf`, + multilevelCacheReport: `https://ashwin-docs.s3.amazonaws.com/Global-flag.pdf`, // Content of the About Me section about: `I am a Grad student pursuing Masters in Computer Science at Arizona State University and looking for full-time roles. I have worked as an Intern, Software Engineer, Senior Software Engineer at Freshworks for 4+ years where I explored full-stack development, object-oriented programming and microservices deployed in cloud.`, // Optional: List your projects, they must have `name` and `description`. `link` is optional. diff --git a/gatsby-node.js b/gatsby-node.js index 5bfa2f1..f4db108 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -123,4 +123,9 @@ exports.createPages = async ({ actions }) => { path: '/full-resume', component: require.resolve('./src/pages/full-resume.jsx'), }); + + createPage({ + path: '/multilevel-cache-report', + component: require.resolve('./src/pages/multilevel-cache-report.jsx'), + }); }; diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 7c31316..679cb5e 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -48,6 +48,7 @@ export const pageQuery = graphql` linkedin resume fullResume + multilevelCacheReport projects { name description diff --git a/src/pages/multilevel-cache-report.jsx b/src/pages/multilevel-cache-report.jsx new file mode 100644 index 0000000..8d4a99a --- /dev/null +++ b/src/pages/multilevel-cache-report.jsx @@ -0,0 +1,22 @@ +import { useEffect } from 'react'; +import { useStaticQuery, graphql } from 'gatsby'; + +export default function MyDocument() { + + const data = useStaticQuery(graphql` + query { + site { + siteMetadata { + multilevelCacheReport + } + } + } + `); + + const { multilevelCacheReport } = data.site.siteMetadata; + useEffect(() => { + window.location.href = multilevelCacheReport; + }, [multilevelCacheReport]); + + return null; +}