make latest year dynamic

This commit is contained in:
Aaron Bieber 2023-08-08 08:31:45 -06:00
parent 1e3f80bc82
commit a92e70fdec
No known key found for this signature in database

View File

@ -153,6 +153,7 @@ get '/' => sub ($c) {
$c->stash( title => $title );
$c->stash( descr => $descr );
$c->stash( mtime => $mtime );
$c->stash( year => (localtime)[5] + 1900 );
if ( defined $search && $search ne "" ) {
my $db = $c->sqlite->db;
@ -259,7 +260,7 @@ __DATA__
<%== content %>
</main>
<footer>
<p><a href="https://github.com/qbit/openbsd.app">OpenBSD.app</a> © 2022-2023 - proudly hosted on <a href="https://openbsd.amsterdam/">obsd.ams</a>!</p>
<p><a href="https://github.com/qbit/openbsd.app">OpenBSD.app</a> © 2022-<%= $year %> - proudly hosted on <a href="https://openbsd.amsterdam/">obsd.ams</a>!</p>
</footer>
</body>
</html>