Skip to content

Commit

Permalink
fix: solve hugo render error
Browse files Browse the repository at this point in the history
  • Loading branch information
longlin10086 authored Oct 24, 2024
1 parent 72fdd2b commit 64892cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_repo_update_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def save_latest_update(commit_info):
datetime_object = commit_info['date']
yymmdd = f'{datetime_object.year}.{datetime_object.month}.{datetime_object.day}'
message_line = commit_info["message"].split('\n')
result_content = f"""{{{{< update-info update_time='{yymmdd}' author='{commit_info['author']}' message='{message_line[0]}' >}}}}"""
result_content = f"""{{{{< update-info update_time="{yymmdd}" author="{commit_info['author']}" message="{message_line[0]}" >}}}}\n"""
with open('result.txt', 'w') as file:
file.write(result_content)

Expand Down

0 comments on commit 64892cb

Please sign in to comment.