Skip to content

Commit 393965a

Browse files
authored
Merge pull request graphql#815 from ahmdtalaat/pr/help
add dynamic year to footer
2 parents 6fbf947 + 6950c4b commit 393965a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

site/_core/Site.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,21 @@ export default ({ page, category, title, section, className, noSearch, children
8989
</div>
9090
</section>
9191
<section className="copyright">
92-
Copyright © 2019 The GraphQL Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. Linux is a registered trademark of Linus Torvalds. <a href="http://www.linuxfoundation.org/privacy">Privacy Policy</a> and <a href="http://www.linuxfoundation.org/terms">Terms of Use</a>.
92+
Copyright © {`${new Date().getFullYear()}`} The GraphQL Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. Linux is a registered trademark of Linus Torvalds. <a href="http://www.linuxfoundation.org/privacy">Privacy Policy</a> and <a href="http://www.linuxfoundation.org/terms">Terms of Use</a>.
9393
</section>
9494
</footer>
9595

9696
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
97-
<script dangerouslySetInnerHTML={{__html: `
97+
<script dangerouslySetInnerHTML={{
98+
__html: `
9899
docsearch({
99100
apiKey: 'd103541f3e6041148aade2e746ed4d61',
100101
indexName: 'graphql',
101102
inputSelector: '#algolia-search-input'
102103
});
103104
`}} />
104-
<script dangerouslySetInnerHTML={{__html: `
105+
<script dangerouslySetInnerHTML={{
106+
__html: `
105107
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
106108
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
107109
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

0 commit comments

Comments
 (0)