Skip to content

Commit

Permalink
added spot for this post was updated...
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiesansev committed May 28, 2021
1 parent 8248f98 commit ca28473
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ exports.createPages = async ({ graphql, actions }) => {
coveralt
articleType
excerpt
updated
content {
type
value
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class CustomHeader extends React.Component<CustomHeaderProps> {
transparent: false,
}
render() {
const curIssue = 'winter21'
const curIssue = 'spring21'
const background = this.props.transparent ? transparent : black
const headerStyle = css`
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/templates/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const query = graphql`
covercred
coveralt
articleType
updated
content {
type
value
Expand Down Expand Up @@ -98,6 +99,8 @@ export default ({ data, pageContext }) => {
<GraphicNovel content={data.primeArticle.content} />
)}
{data.primeArticle.articleType === 'article' && (
<>
<p style={{"text-align":"center", "font-family": 'Source Serif Pro'}}> {data.primeArticle.updated}</p>
<Article
dropcap={true}
content={data.primeArticle.content}
Expand All @@ -123,6 +126,7 @@ export default ({ data, pageContext }) => {
}
`}
/>
</>
)}
<FooterAuthorBio
name={data.primeArticle.author}
Expand Down
3 changes: 3 additions & 0 deletions src/templates/issue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const query = graphql`
coveralt
articleType
excerpt
updated
}
}
}
Expand Down Expand Up @@ -64,6 +65,8 @@ export default ({ data, pageContext }) => {
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 = []
Expand Down

0 comments on commit ca28473

Please sign in to comment.