mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
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:
parent
51e8215e78
commit
f551d5d889
3 changed files with 0 additions and 27 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
|
Loading…
Add table
Reference in a new issue