fix: remove website version page

This commit is contained in:
Victor Westerlund 2024-09-27 16:50:45 +02:00
parent 51e8215e78
commit f74d39913b
2 changed files with 0 additions and 21 deletions

View file

@ -39,10 +39,6 @@
<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>
</section>
<hr>
<section class="version">
<p>website version: <?= VV::include("public/about/version") ?></p>
</section>
<div class="interests" aria-hidden="true">
<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>