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:
MassiveBox 2022-09-17 18:46:43 +02:00
parent e1fbe0782c
commit c7ffffc164
3 changed files with 12 additions and 4 deletions

View file

@ -8,4 +8,4 @@ Don't forget to clone the repo with `--recurse-submodules` to get all dependanci
- jQuery because plain JS is boring
- RSS Parser because Pleroma's feed is in RSS format
You can check out a live version at https://massivebox.net or https://massivebox.codeberg.page/website.
You can check out a live version at https://massivebox.net or https://massivebox.netlify.app/ (without the Pleroma feed since the path is relative, so it tries to fetch https://massivebox.netlify.app/feed.atom, which doesn't exist).

View file

@ -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>

View file

@ -27,13 +27,14 @@ long_line_behaviour=1
long_line_column=72
[files]
current_page=5
current_page=6
FILE_NAME_0=10976;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2Findex.html;0;4
FILE_NAME_1=5552;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2Fcontact.html;0;4
FILE_NAME_2=6960;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2Fprojects.html;0;4
FILE_NAME_3=382;None;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2F.gitmodules;0;4
FILE_NAME_3=371;None;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2F.gitmodules;0;4
FILE_NAME_4=446;Markdown;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2FREADME.md;0;4
FILE_NAME_5=13;None;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsito3%2F.gitignore;0;4
FILE_NAME_6=1805;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fmassive%2FDEV%2Fwebsite%2Findex.html;0;4
[VTE]
last_dir=/home/massive/DEV/leo exploit