Remove year highlighting for current year

This commit is contained in:
Peter Norvig
2026-04-25 09:44:39 -07:00
committed by GitHub
parent 7cebfa6149
commit 721a7954b4

View File

@@ -205,7 +205,6 @@ def format_notebook(title, year, url, comment=''):
nb = f'[N](https://nbviewer.jupyter.org/github/norvig/pytudes{urlb})' nb = f'[N](https://nbviewer.jupyter.org/github/norvig/pytudes{urlb})'
sm = f'[S](https://studiolab.sagemaker.aws/import/github/norvig/pytudes{urlb})' sm = f'[S](https://studiolab.sagemaker.aws/import/github/norvig/pytudes{urlb})'
ti = f'<a href="{gh[4:-1]}" title="{comment}">{title}</a>' ti = f'<a href="{gh[4:-1]}" title="{comment}">{title}</a>'
if year == current_year: year = f'<u>{year}</u>'
return f'| {co} {dn} {my} {nb} {sm} | {year} | {ti} |' return f'| {co} {dn} {my} {nb} {sm} | {year} | {ti} |'
def format_pythons() -> str: def format_pythons() -> str: