aboutsummaryrefslogtreecommitdiff
path: root/lume/src
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-10-22 12:44:42 -0400
committerXe Iaso <me@xeiaso.net>2023-10-22 12:44:42 -0400
commitded584e1e7455e64440c744957dd6fa006c2ac42 (patch)
tree5a100b527cf94f551b1ee517c65dbcb5e55afd3b /lume/src
parent3cff11317d33da8b649c64aec3cb04df30616a26 (diff)
downloadxesite-ded584e1e7455e64440c744957dd6fa006c2ac42.tar.xz
xesite-ded584e1e7455e64440c744957dd6fa006c2ac42.zip
internal/lume: annotate website commit in footer
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/src')
-rw-r--r--lume/src/_data/.gitignore1
-rw-r--r--lume/src/_includes/base.njk2
2 files changed, 2 insertions, 1 deletions
diff --git a/lume/src/_data/.gitignore b/lume/src/_data/.gitignore
index 773657a..2d0f2ed 100644
--- a/lume/src/_data/.gitignore
+++ b/lume/src/_data/.gitignore
@@ -1,6 +1,7 @@
argv.json
authors.json
characters.json
+commit.json
contactLinks.json
jobHistory.json
notableProjects.json
diff --git a/lume/src/_includes/base.njk b/lume/src/_includes/base.njk
index 78211b5..91cda14 100644
--- a/lume/src/_includes/base.njk
+++ b/lume/src/_includes/base.njk
@@ -165,7 +165,7 @@ la budza pu cusku lu
href="https://patreon.com/cadey">Patreon</a> like <a href="/patrons">these awesome people</a>!</p>
</div>
<div class="flex items-center justify-center border-fg-3 dark:border-fgDark-3 lg:justify-between">
- <p>Served by xesite v4 ({{argv[0]}}), source code available <a href="https://github.com/Xe/site">here</a>.</p>
+ <p>Served by xesite v4 ({{argv[0]}}) with site version {% if commit.hash != "development" %}<a href="https://github.com/Xe/site/commit/{{commit.hash}}">{{commit.hash.substr(0, 8)}}</a>{% else %}{{commit.hash}}{% endif %}, source code available <a href="https://github.com/Xe/site">here</a>.</p>
</div>
</footer>
</body> \ No newline at end of file