Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Commit b5ab010

Browse files
committed
Fill the copyright year in the browser
1 parent 668bb0c commit b5ab010

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

‎mkdocs.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ extra:
6565
repo_name: codeigniter4/CodeIgniter4
6666
repo_url: https://github.com/codeigniter4/CodeIgniter4
6767
edit_uri: edit/develop/docs/
68-
# overrides/partials/copyright.html replaces {year} with the build year.
69-
copyright: Copyright © 2019-{year} CodeIgniter Foundation.
68+
copyright: Copyright &copy; 2019-<span data-current-year>2026</span> CodeIgniter Foundation.
7069

7170
validation:
7271
anchors: warn
@@ -101,3 +100,4 @@ extra_javascript:
101100
- assets/js/code.js
102101
- assets/js/versions.js
103102
- assets/js/sidebar.js
103+
- assets/js/year.js

‎overrides/assets/js/year.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
document.querySelectorAll('[data-current-year]').forEach((element) => {
2+
element.textContent = new Date().getFullYear();
3+
});

‎overrides/partials/copyright.html‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)