Skip to content

Commit

Permalink
Update copyright year in footer and license file (#799) (#808)
Browse files Browse the repository at this point in the history
Co-authored-by: Subash Chandra Sapkota <[email protected]>
  • Loading branch information
subashcs and Subash Chandra Sapkota authored Sep 5, 2023
1 parent aaf0833 commit 5410475
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2012 - 2019 Contributors to https://github.com/h5bp/Front-end-Developer-Interview-Questions
Copyright (c) 2012 - 2023 Contributors to https://github.com/h5bp/Front-end-Developer-Interview-Questions

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 6 additions & 0 deletions src/_data/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
currentYear() {
const today = new Date();
return today.getFullYear();
},
};
2 changes: 1 addition & 1 deletion src/_includes/components/footer.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class="footer">
<p class="footer-text">
Copyright &copy; 2012 - 2022. Contributors to
Copyright &copy; 2012 - {{ helpers.currentYear() }}. Contributors to
<a href="https://github.com/h5bp/Front-end-Developer-Interview-Questions/blob/main/CONTRIBUTORS.md">Front-end-Developer-Interview-Questions.</a><br>
Curious about the project? <a href="{{ '/about/' | url }}">Read more about here</a>.
</p>
Expand Down

0 comments on commit 5410475

Please sign in to comment.