Skip to content

Commit

Permalink
style: change update-info string style
Browse files Browse the repository at this point in the history
  • Loading branch information
longlin10086 authored Oct 24, 2024
1 parent 7470201 commit d461f49
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"<p class='hx-text-gray-700'>最近更新时间 {yymmdd} ‖ 更新者 {commit_info['author']} ‖ <i>{message_line[0]}</i></p> \n\n"
result_content = f"""{{{{< update-info update_time='{yymmdd}' author='{commit_info['author']}' message='{message_line[0]}' >}}}}"""
with open('result.txt', 'w') as file:
file.write(result_content)

Expand Down

0 comments on commit d461f49

Please sign in to comment.