Fix alt URL + auto-update age
- It seems that Codeberg Pages doesn't support Submodules, so for now the alternative website is on Netlify - I forgot to update my age on my birthday this year, so I figured I might as well automate it
This commit is contained in:
parent
e1fbe0782c
commit
c7ffffc164
3 changed files with 12 additions and 4 deletions
|
@ -44,6 +44,13 @@
|
|||
$(".navbar-menu").toggleClass("is-active");
|
||||
|
||||
});
|
||||
|
||||
var dob = new Date("09/03/2004");
|
||||
var month_diff = Date.now() - dob.getTime();
|
||||
var age_dt = new Date(month_diff);
|
||||
var year = age_dt.getUTCFullYear();
|
||||
$("#age").text(Math.abs(year - 1970));
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -111,7 +118,7 @@
|
|||
<section class="section">
|
||||
<p class="title">Who am I</p>
|
||||
<p class="subtitle">
|
||||
I'm Matteo, a 17 years old guy from Brescia, Italy.<br>
|
||||
I'm Matteo, a <span id="age"></span> years old guy from Brescia, Italy.<br>
|
||||
In my free time I like fiddling around with code, and sometimes I come up with something decent that I publish to the world.<br>
|
||||
I like cats, Linux, Free and Open Source Software, and privacy.
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue