From 541047561b614f929ce437f4f895b1e507ddcb83 Mon Sep 17 00:00:00 2001 From: Subash Chandra Sapkota Date: Wed, 6 Sep 2023 01:45:48 +0545 Subject: [PATCH] Update copyright year in footer and license file (#799) (#808) Co-authored-by: Subash Chandra Sapkota --- LICENSE.md | 2 +- src/_data/helpers.js | 6 ++++++ src/_includes/components/footer.njk | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/_data/helpers.js diff --git a/LICENSE.md b/LICENSE.md index 24f03e5..0721195 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -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: diff --git a/src/_data/helpers.js b/src/_data/helpers.js new file mode 100644 index 0000000..e77b7f9 --- /dev/null +++ b/src/_data/helpers.js @@ -0,0 +1,6 @@ +module.exports = { + currentYear() { + const today = new Date(); + return today.getFullYear(); + }, +}; diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk index badabc4..e3975f7 100644 --- a/src/_includes/components/footer.njk +++ b/src/_includes/components/footer.njk @@ -1,6 +1,6 @@