import common
def atom(entries):
return (
""""""
""""""
"" + common.title("") + ""
f"""{common.base_url}/"""
f""""""
f""""""
"Grey Nicholson"
f"{common.base_url}/style/icon.svg"
""
+ common.updated.isoformat()
+ ""
+ "\n"
+ "\n".join(common.atom_entry(id) for id in reversed(entries))
+ "\n"
+ ""
)
def html(entries):
list_of_entries = (
"
"
+ "".join(
("- " + common.link_to_entry(entry) + "
")
for entry in reversed(entries)
)
+ "
"
)
list_of_dates = (
"Years:
"
+ ""
+ "".join(
("- " + f'{year:%Y}' + "
")
for year in common.years
)
+ "
"
)
list_of_series = (
(
"Series:
"
+ ""
+ "".join(
(
"- "
+ f'{series}'
+ "
"
)
for series in common.series
)
+ "
"
)
if len(common.series) > 0
else ""
)
list_of_tags = (
(
"Tags:
"
+ ""
+ "".join(
("- " + f'{tag}' + "
")
for tag in common.repeated_tags
)
+ "
"
)
if len(common.repeated_tags) > 0
else ""
)
return common.print_html(
f"""
{common.head}
{common.title('All entries')}
{common.footer}
"""
)