diff --git a/_config.yml b/_config.yml
index d405034ed8ed01..d885946eadbdbe 100644
--- a/_config.yml
+++ b/_config.yml
@@ -203,6 +203,7 @@ icon-tag:
video: fas fa-video
video-slides: far fa-play-circle
zenodo_link: far fa-copy
+ version: fas fa-code-commit
# To exclude in _site
exclude:
diff --git a/_layouts/tutorial_hands_on.html b/_layouts/tutorial_hands_on.html
index 47898dba1e60c5..2c3fa5759e18fe 100644
--- a/_layouts/tutorial_hands_on.html
+++ b/_layouts/tutorial_hands_on.html
@@ -161,8 +161,11 @@
Under Development!
{% endif %} The GTN Framework is licensed under MIT
{% if page.short_id %}
-
+
{% endif %}
+
+ {% icon version %} Revision: {{ page | get_version_number }}
+
diff --git a/_plugins/gtn.rb b/_plugins/gtn.rb
index f36d1f7a5104d8..6687a4a34992fd 100644
--- a/_plugins/gtn.rb
+++ b/_plugins/gtn.rb
@@ -357,6 +357,10 @@ def layout_to_human(layout)
end
end
+ def get_version_number(page)
+ Gtn::ModificationTimes.obtain_modification_count(page['path'])
+ end
+
def topic_name_from_page(page, site)
if page.key? 'topic_name'
site.data[page['topic_name']]['title']