diff --git a/gatsby-node.js b/gatsby-node.js index b0714f1..1f75ce8 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -128,6 +128,7 @@ exports.createPages = async ({ graphql, actions }) => { coveralt articleType excerpt + updated content { type value diff --git a/package.json b/package.json index 11d77a7..68a51cb 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "daily bruin" ], "dependencies": { + "@babel/plugin-transform-spread": "^7.12.1", "@dailybruin/gatsby-source-kerckhoff": "1.1.1", "@dailybruin/lux": "1.15.0", "@fortawesome/react-fontawesome": "^0.1.4", @@ -32,7 +33,7 @@ "gatsby-plugin-typescript": "2.1.9", "gatsby-plugin-typography": "2.3.8", "gatsby-source-published-google-sheets": "1.0.2", - "node-fetch": "2.6.0", + "node-fetch": "^2.6.1", "normalize.css": "8.0.1", "react": "16.9.0", "react-dom": "16.9.0", diff --git a/src/components/CustomHeader.tsx b/src/components/CustomHeader.tsx index 97dedb1..adb1230 100644 --- a/src/components/CustomHeader.tsx +++ b/src/components/CustomHeader.tsx @@ -39,7 +39,7 @@ export default class CustomHeader extends React.Component { transparent: false, } render() { - const curIssue = 'winter21' + const curIssue = 'spring21' const background = this.props.transparent ? transparent : black const headerStyle = css` width: 100%; diff --git a/src/templates/article.tsx b/src/templates/article.tsx index 24ed537..cd32322 100644 --- a/src/templates/article.tsx +++ b/src/templates/article.tsx @@ -24,6 +24,7 @@ export const query = graphql` covercred coveralt articleType + updated content { type value @@ -98,6 +99,8 @@ export default ({ data, pageContext }) => { )} {data.primeArticle.articleType === 'article' && ( + <> +

{data.primeArticle.updated}

{ } `} /> + )} { issuuLink = 'https://e.issuu.com/anonymous-embed.html?u=dailybruin&d=master' if (term == 'winter21') issuuLink = `https://e.issuu.com/anonymous-embed.html?u=dailybruin&d=prime_w21` + if (term == 'spring21') + issuuLink = `https://e.issuu.com/anonymous-embed.html?u=dailybruin&d=prime_spring_21` // the link is determined by the filename on upload oops so be careful! const formatTerm = season + ' ' + year const articleCards = []