Skip to content

Commit 0ead472

Browse files
authored
fix: dynamic copyright year with founding year logic
Updated footer copyright to display founding year (2026) dynamically. - Shows "© 2026" in founding year instead of "© 2026–2026" - Automatically appends current year as "© 2026–YYYY" in future years - No manual updates required going forward
1 parent ebcdfa1 commit 0ead472

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ <h2>Help build the future<br/>of <span style="color:var(--cyan)">mobile computin
11591159
<a href="https://zethraos.com">zethraos.com</a>
11601160
</div>
11611161
<div class="footer-copy">
1162-
© 2025 ZethraOS · Built on Linux 6.x · Apache 2.0 · Made with <span></span> for the open source community
1162+
© 2026<span id="current-year"></span> ZethraOS · Built on Linux 6.x · Apache 2.0 · Made with <span></span> for the open source community
11631163
</div>
11641164
</div>
11651165
</footer>
@@ -1278,6 +1278,10 @@ <h2>Help build the future<br/>of <span style="color:var(--cyan)">mobile computin
12781278
}
12791279
draw();
12801280
})();
1281+
1282+
const founded = 2026;
1283+
const current = new Date().getFullYear();
1284+
document.getElementById('current-year').textContent = current > founded ? `–${current}` : '';
12811285
</script>
12821286
</body>
12831287
</html>

0 commit comments

Comments
 (0)