-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create changelog permalinks * Use HTML in feed * Use plain in RSS * Add logo to static folder
- Loading branch information
Showing
8 changed files
with
184 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ module.exports.CHANGELOG_QUERY = ` | |
) { | ||
edges { | ||
node { | ||
title | ||
slug | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React from 'react'; | ||
import { graphql } from 'gatsby'; | ||
import { SEO, SitewideHeader, SitewideFooter, TextLink as Link } from 'components'; | ||
import { ChangeSet } from 'components/changelog'; | ||
import { ArrowCircleLeftIcon } from '@heroicons/react/outline'; | ||
import get from 'lodash/get'; | ||
|
||
const ChangeSetPage = ({ | ||
data: { | ||
site: { | ||
siteMetadata: { | ||
title: siteTitle, | ||
}, | ||
}, | ||
|
||
changeSet, | ||
}, | ||
}) => ( | ||
<> | ||
<SEO | ||
title={`Release: ${changeSet.title} | ${siteTitle}`} | ||
description={get(changeSet, 'description.childMarkdownRemark.excerpt', 'Read the changelog')} | ||
/> | ||
|
||
<SitewideHeader /> | ||
|
||
<main className="max-w-5xl sm:max-w-4xl mx-auto px-8 pb-20 pt-8 lg:pb-28"> | ||
<ChangeSet | ||
title={changeSet.title} | ||
releasedAt={changeSet.releasedAt} | ||
description={get(changeSet, 'description.childMarkdownRemark', {})} | ||
isCollapsible={false} | ||
/> | ||
|
||
<div className="mt-6 list-reset lg:flex items-start"> | ||
<div className="md:w-32 lg:w-48 flex-shrink-0" /> | ||
<Link to="/changelog/" color="primary"> | ||
<ArrowCircleLeftIcon className="mr-1 h-6 w-6 inline" /> | ||
<span className="align-middle">Browse the full changlog</span> | ||
</Link> | ||
</div> | ||
</main> | ||
|
||
<SitewideFooter /> | ||
</> | ||
); | ||
|
||
export default ChangeSetPage; | ||
|
||
export const pageQuery = graphql` | ||
query ChangeSetBySlug($slug: String!) { | ||
changeSet: contentfulChangeSet(slug: { eq: $slug }) { | ||
title | ||
releasedAt | ||
slug | ||
description { | ||
childMarkdownRemark { | ||
html | ||
excerpt(pruneLength: 160, format: PLAIN) | ||
} | ||
} | ||
} | ||
site { | ||
siteMetadata { | ||
title | ||
} | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.