Skip to content

Commit

Permalink
Apply Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelwhitton committed Jan 28, 2025
1 parent 39f1bab commit a6883c0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
4 changes: 3 additions & 1 deletion src/templates/certificationpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class CertificationTemplate extends React.Component {
<SEO
slot="seo"
title={node.frontmatter.subtitle + ' | ' + node.frontmatter.title}
description={node.frontmatter.description || node.frontmatter.subtitle}
description={
node.frontmatter.description || node.frontmatter.subtitle
}
authors={node.frontmatter.contributors}
image={'/images/assets/terminus-thumbLarge.png'}
reviewed={ifCommandsISO}
Expand Down
49 changes: 30 additions & 19 deletions src/templates/releaseNotePage.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import React from "react"
import { Link, graphql } from "gatsby"
import Layout from "../layout/layout"
import SEO from "../layout/seo"
import ReleaseNoteCategories from "../components/ReleaseNoteCategories"
import MdxWrapper from "../components/mdxWrapper.js"
import PublishedDate from "../components/PublishedDate"
import { Container, Icon } from "@pantheon-systems/pds-toolkit-react"
import React from 'react';
import { Link, graphql } from 'gatsby';
import Layout from '../layout/layout';
import SEO from '../layout/seo';
import ReleaseNoteCategories from '../components/ReleaseNoteCategories';
import MdxWrapper from '../components/mdxWrapper.js';
import PublishedDate from '../components/PublishedDate';
import { Container, Icon } from '@pantheon-systems/pds-toolkit-react';
import {
headline2,
headline3,
headline4,
} from "../components/releaseHeadlines"
} from '../components/releaseHeadlines';

const customShortcodes = {
h1: headline2,
h2: headline3,
h3: headline4,
}
};

// Set container width for search and main content.
const containerWidth = "standard"
const containerWidth = 'standard';

class ReleaseNoteTemplate extends React.Component {
render() {
const node = this.props.data.mdx
const node = this.props.data.mdx;

return (
<Layout containerWidth={containerWidth} excludeSearch footerBorder>
<SEO
title={node.frontmatter.title}
description="A summary of changes to the Pantheon Platform"
authors={node.frontmatter.contributors}
image={"/images/assets/default-thumb-doc.png"}
image={'/images/assets/default-thumb-doc.png'}
/>
<main id="docs-main" tabIndex="-1">
<Container
Expand Down Expand Up @@ -59,30 +59,41 @@ class ReleaseNoteTemplate extends React.Component {
dateString={node.frontmatter.published_date}
className="pds-spacing-mar-block-end-m"
/>
<MdxWrapper mdx={node.body} customShortcodes={customShortcodes} />
<MdxWrapper
mdx={node.body}
customShortcodes={customShortcodes}
/>
</div>
</div>

<div className="pds-spacing-mar-block-4xl">
<a href="/release-notes/rss.xml" target="_blank" className="rss-feed-link">
<Icon className="rss-feed-link-icon" iconName='rss' iconSize='lg' />
<a
href="/release-notes/rss.xml"
target="_blank"
className="rss-feed-link"
>
<Icon
className="rss-feed-link-icon"
iconName="rss"
iconSize="lg"
/>
<span>Subscribe to RSS feed</span>
</a>
</div>
</article>
</Container>
</main>
</Layout>
)
);
}
}

export default ReleaseNoteTemplate
export default ReleaseNoteTemplate;

export const pageQuery = graphql`
query ReleaseNoteBySlug($slug: String!) {
mdx(fields: { slug: { eq: $slug } }) {
...theReleaseNoteFields
}
}
`
`;

0 comments on commit a6883c0

Please sign in to comment.