Skip to content

Commit

Permalink
feat(starters): make copyright year dynamic (#10759)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Sowles authored and wardpeet committed Jan 2, 2019
1 parent 060661f commit c02b1c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion starters/blog/src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class Layout extends React.Component {
{header}
{children}
<footer>
© 2018, Built with <a href="https://www.gatsbyjs.org">Gatsby</a>
© {new Date().getFullYear()}, Built with
{` `}
<a href="https://www.gatsbyjs.org">Gatsby</a>
</footer>
</div>
)
Expand Down
4 changes: 3 additions & 1 deletion starters/default/src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const Layout = ({ children }) => (
>
{children}
<footer>
© 2018, Built with <a href="https://www.gatsbyjs.org">Gatsby</a>
© {new Date().getFullYear()}, Built with
{` `}
<a href="https://www.gatsbyjs.org">Gatsby</a>
</footer>
</div>
</>
Expand Down

0 comments on commit c02b1c4

Please sign in to comment.