Skip to content

Commit 17122be

Browse files
greenstaticleebyron
authored andcommitted
year at the copyright in the footer of the page changes automatically (graphql#381)
1 parent 2f88125 commit 17122be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/_core/Site.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export default ({ page, category, title, section, className, noSearch, children
9191
<img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45" />
9292
</a>
9393
<section className="copyright">
94-
Copyright &copy; 2016 Facebook Inc. The contents of this page are licensed BSD-3-Clause.
94+
Copyright &copy;
95+
<span><script>document.write(new Date().getFullYear())</script> </span>
96+
<noscript>2017 </noscript>
97+
Facebook Inc. The contents of this page are licensed BSD-3-Clause.
9598
</section>
9699
</footer>
97100

0 commit comments

Comments
 (0)