aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/layout/footer.html4
-rw-r--r--_plugins/tags.rb7
2 files changed, 9 insertions, 2 deletions
diff --git a/_includes/layout/footer.html b/_includes/layout/footer.html
index 7529670..9a96174 100644
--- a/_includes/layout/footer.html
+++ b/_includes/layout/footer.html
@@ -38,9 +38,9 @@
</small>
</div>
<div class="col-xs-2 col-md-2">
- <strong><a class="text-dark" href="https://www.gentoo.org/inside-gentoo/contact/">Contact</a></strong><br>
+ <strong><a class="text-dark" href="https://gitweb.gentoo.org/sites/www.git/">Version</a></strong><br>
<small>
- <%= `git describe --tags` %>
+ {% render_version %}
</small>
</div>
</div>
diff --git a/_plugins/tags.rb b/_plugins/tags.rb
index 7ad24bb..6e08746 100644
--- a/_plugins/tags.rb
+++ b/_plugins/tags.rb
@@ -36,7 +36,14 @@ module Gentoo
ad_html
end
end
+
+ class VersionTag < Liquid::Tag
+ def render(context)
+ `git rev-parse --short HEAD`
+ end
+ end
end
end
Liquid::Template.register_tag('render_ads', Gentoo::Tags::AdsTag)
+Liquid::Template.register_tag('render_version', Gentoo::Tags::VersionTag)