Skip to content

Commit

Permalink
Merge pull request #39 from krisstern/feat/add-publication-date-for-r…
Browse files Browse the repository at this point in the history
…eference

feat: add publication date field for each contributor
  • Loading branch information
krisstern committed Nov 30, 2023
2 parents c4dc1e3 + 37dd59c commit 39b6602
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exports.createPages = ({ graphql, actions }) => {
slug
}
pageAttributes {
datepublished
name
pronouns
location
Expand Down
1 change: 1 addition & 0 deletions src/pages/contributors/alexander-brandes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:page-pronouns: He/Him
:page-location: Kassel, Germany
:page-firstcommit: 2019
:page-datepublished: 2023-11-29
:page-featured: true
:page-intro: Alexander Brandes is an open-source contributor and maintainer and serves on the Jenkins governance board. He has made contributions to multiple aspects of the Jenkins project including Jenkins Core, multiple plugins, weekly and Long Term Support releases, and the community.

Expand Down
8 changes: 8 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ const IndexPage = (props) => {
display={"flex"}
flexDirection={"column"}
width={"100%"}
>
<Typography variant={"h5"} textAlign={isDesktop ? "left" : "center"}>Date Published: <br/>{contributor.node.pageAttributes.datepublished}</Typography>
</Box>

<Box
marginTop={1}
marginBottom={1}
>
<Typography
sx={{
Expand Down Expand Up @@ -205,6 +212,7 @@ export const pageQuery = graphql`
slug
}
pageAttributes {
datepublished
name
pronouns
location
Expand Down
6 changes: 6 additions & 0 deletions src/templates/contributor-details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ function ContributorDetails(props) {
{"First Commit: " + props.data.asciidoc.pageAttributes.firstcommit ?? "Unknown"}
</Typography>
</Box>
<Box sx={{paddingBottom: 1.5}}>
<Typography variant={"h6"} textAlign={"center"}>
{"Date Published: " + props.data.asciidoc.pageAttributes.datepublished}
</Typography>
</Box>
<Box display={"flex"} alignItems={"center"} justifyContent={"center"} gap={1} sx={{paddingBottom: 2}}>
{props.data.asciidoc.pageAttributes.linkedin !== ""
&& <Link to={`https://www.linkedin.com/in/${props.data.asciidoc.pageAttributes.linkedin}`}><LinkedInIcon/></Link>}
Expand Down Expand Up @@ -105,6 +110,7 @@ export const pageQuery = graphql`
main
}
pageAttributes {
datepublished
name
pronouns
location
Expand Down

0 comments on commit 39b6602

Please sign in to comment.