Skip to content

Commit

Permalink
Fix: "Jump to today" target in weblogs (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 authored Jul 15, 2023
1 parent 8773df2 commit 4d80fd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/WebLogsS3/render_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def render_channel(base_url, channel):
result += '<pre><span class="prev">(nothing was recorded for this channel)</span></pre>'
else:
result += "<ul>"
result += f'<li><a href="{base_url}/{channel}/{now.year}/{now.month}/{now.day}.html">Jump to today</a></li>'
result += "<li>"
result += f'<a href="{base_url}/{channel}/{now.year:04d}/{now.month:02d}/{now.day:02d}.html">Jump to today</a>'
result += "</li>"
result += "</ul>"

result += "<ul>"
Expand Down

0 comments on commit 4d80fd9

Please sign in to comment.