confpy-gitcommit #35

Closed
sgode wants to merge 2 commits from confpy-gitcommit into main
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 6068d7cea1 - Show all commits

View File

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