Skip to content

Commit e0f26b9

Browse files
authored
Website tweaks (#74)
Signed-off-by: Daniel Guns <danbguns@gmail.com>
1 parent e4ea1fc commit e0f26b9

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

docs/content/_index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ notoc: true
2424

2525
<!-- Action Buttons -->
2626
<div class="mb-5">
27-
<a class="btn btn-lg btn-primary me-3 mb-3" href="/getting-started/">
27+
<a class="btn btn-lg btn-primary me-3 mb-3" href="{{< relref \"getting-started/\" >}}">
2828
Get Started <i class="fas fa-arrow-alt-circle-right ms-2"></i>
2929
</a>
3030
<a class="btn btn-lg btn-outline-primary mb-3" href="https://github.com/dgunzy/flux9s">
@@ -42,6 +42,10 @@ notoc: true
4242
<h3 id="github-stars" class="mb-2">-</h3>
4343
<p class="text-muted mb-0">GitHub Stars</p>
4444
</div>
45+
<div class="col-md-3 col-sm-6 text-center stat-item mb-4">
46+
<h3 id="github-downloads" class="mb-2">-</h3>
47+
<p class="text-muted mb-0">GitHub Downloads</p>
48+
</div>
4549
<div class="col-md-3 col-sm-6 text-center stat-item mb-4">
4650
<h3 id="github-releases" class="mb-2">-</h3>
4751
<p class="text-muted mb-0">Releases</p>

docs/static/js/metadata.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
starsEl.textContent = formatNumber(metadata.github_stars);
2424
}
2525

26+
// Update GitHub binary downloads
27+
const downloadsEl = document.getElementById("github-downloads");
28+
if (downloadsEl && metadata.github_binary_downloads) {
29+
downloadsEl.textContent = formatNumber(metadata.github_binary_downloads);
30+
}
31+
2632
// Update GitHub releases
2733
const releasesEl = document.getElementById("github-releases");
2834
if (releasesEl && metadata.github_releases) {
@@ -33,6 +39,7 @@
3339
// Set default values on error
3440
document.getElementById("crates-downloads").textContent = "-";
3541
document.getElementById("github-stars").textContent = "-";
42+
document.getElementById("github-downloads").textContent = "-";
3643
document.getElementById("github-releases").textContent = "-";
3744
}
3845
})();

0 commit comments

Comments
 (0)