fix: remove website version page and import (#6)

This PR removes the website version page and reference from the about page. Its pretty unreliable and doesn't really matter to the reader anyways.

Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/6
Co-authored-by: Victor Westerlund <victor.vesterlund@gmail.com>
Co-committed-by: Victor Westerlund <victor.vesterlund@gmail.com>
This commit is contained in:
Victor Westerlund 2024-09-27 14:53:19 +00:00 committed by Victor Westerlund
parent 51e8215e78
commit f551d5d889
3 changed files with 0 additions and 27 deletions

View file

@ -45,12 +45,6 @@ section.about p i:not(:hover) {
opacity: .3; opacity: .3;
} }
/* ## Version */
section.version {
color: rgba(255, 255, 255, .2);
}
/* # Interests */ /* # Interests */
div.interests { div.interests {

View file

@ -39,10 +39,6 @@
<section> <section>
<p>Let's work on something together or just have a chat? <a href="contact" vv="about" vv-call="navigate">Write me a line!</a></p> <p>Let's work on something together or just have a chat? <a href="contact" vv="about" vv-call="navigate">Write me a line!</a></p>
</section> </section>
<hr>
<section class="version">
<p>website version: <?= VV::include("public/about/version") ?></p>
</section>
<div class="interests" aria-hidden="true"> <div class="interests" aria-hidden="true">
<p>SSTV</p> <p>SSTV</p>

View file

@ -1,17 +0,0 @@
<?php
/*
A pretty naive website version fetcher that assumes the latest git tag is the
version the website is currently displaying. The intent is that any live-master
of this website should always track the master branch and pull the latest HEAD
without any exceptions.
*/
// Get tags from local git folder
$dir = scandir(VV::root(".git/refs/tags"));
// Get current version number from latest tag
$version = end($dir);
?>
<a href="https://codeberg.org/vlw/vlw.se/releases/tag/<?= $version ?>"><?= $version ?></a>