Add version to home page

This commit is contained in:
Wesley Moore 2024-04-14 12:31:36 +10:00
parent 6359ba87b5
commit 8dceb5c8f4
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View file

@ -96,6 +96,9 @@ footer a:hover {
.hero section {
padding: 0 5rem;
}
.version-number {
font-variant-numeric: tabular-nums;
}
@media screen and (max-width: 950px) {
.hero {
flex-direction: column;

View file

@ -3,7 +3,7 @@
{% block hero %}
<section class="text-center">
<h1 class="heading-text" style="font-size: 50px">{{ section.description }}</h1>
<h1 class="heading-text" style="font-size: 50px; text-wrap: balance">{{ section.description }}</h1>
<h3 class="title-text">
RSS Please is a command line tool that runs on Linux, macOS, Windows, BSD, and more.
</h3>
@ -13,7 +13,11 @@
{% set latest_release = releases.feed.entry | first %}
{% set latest_version = latest_release.link['@href'] | split(pat="/") | last %}
<a href="/install/" class="link-button install-button" style="margin-top: 2em" data-version="{{ latest_version }}">Install</a>
<p>Current version: <span class="version-number">{{ latest_version }}</span></p>
</div>
</section>
<div class="text-center">
<img class="hero-image" style="image-rendering: pixelated;" src="{{ get_url(path="screenshot.png") }}" alt="Screenshot of two invocations of rsspls in a terminal. The first fetches and generates the feeds, the second does not change anything as the source pages are unmodifed." title="Screenshot of rsspls running on a Linux system over an SSH connection in ssheven on Mac OS 8.">