Compare commits

..

1 Commits

Author SHA1 Message Date
b8c62735a2 Added Commit Hash and Time to confpy
All checks were successful
gl/check check status: success (b8c62735a20c18ed5bee6b52c9dc9fbdf6af10fa)
gl/gate gate status: success (b8c62735a20c18ed5bee6b52c9dc9fbdf6af10fa)
2024-09-06 07:25:32 +00:00

View File

@ -133,8 +133,8 @@ latex_documents = [
{% endif -%}
]
# Get the Git commit values for last updated timestamp on each page
# Get the Git commit values
repo = Repo(search_parent_directories=True)
commit = repo.head.commit
current_commit_hash = commit.hexsha
current_commit_hash = commit.hexsha[:7]
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')