forked from infra/otc-metadata
longer commit string
This commit is contained in:
parent
7ec0772602
commit
af344cd4d8
@ -133,8 +133,8 @@ latex_documents = [
|
|||||||
{% endif -%}
|
{% endif -%}
|
||||||
]
|
]
|
||||||
|
|
||||||
# Get the Git commit values
|
# Get the Git commit values for last updated timestamp on each page
|
||||||
repo = Repo(search_parent_directories=True)
|
repo = Repo(search_parent_directories=True)
|
||||||
commit = repo.head.commit
|
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')
|
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user