Skip to content

Fixes #342: Update Footer to Display Dynamic Year in Nightwatch Website - #343

Open
rahulptl165 wants to merge 1 commit into
nightwatchjs:versions/3.0from
rahulptl165:Fixes#342
Open

Fixes #342: Update Footer to Display Dynamic Year in Nightwatch Website#343
rahulptl165 wants to merge 1 commit into
nightwatchjs:versions/3.0from
rahulptl165:Fixes#342

Conversation

@rahulptl165

Copy link
Copy Markdown

Fixes #342

Description:

This PR updates the footer of the Nightwatch.js website to dynamically display the current year. The current implementation has a static "© 2023" text, which gives the impression that the website is outdated. The new implementation ensures the year is automatically updated using EJS.

Changes Made:

  • Updated the EJS template for the footer to dynamically render the current year using JavaScript's Date object.
  • Code snippet added:
    <footer>
      <p<%= new Date().getFullYear() %> Nightwatch.js. All rights reserved.</p>
    </footer>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Footer on Nightwatch Website Displays "© 2023" Instead of the Current Year

1 participant