import common
def atom(entries, series):
return (
""""""
""""""
"" + series + ""
"" + common.base_url + common.url_of_series(series) + ""
f""""""
f""""""
"Grey Nicholson"
"" + common.base_url + "/style/icon.svg"
""
+ common.updated.isoformat()
+ ""
+ "\n"
+ "\n".join(
common.atom_entry(id)
for id in reversed(entries)
if "series" in common.entries[id]
and common.slugify(series) == common.slugify(common.entries[id]["series"])
)
+ "\n"
+ ""
)
def html(entries, series):
colour_class = common.slugify(series)
description_text = (
(
"An occasional blog in which I recommend interesting, obscure and underheard music"
)
if series == "the Friday Fetch-it"
else (
"A stream-of-consciousness–type blog about decay, perception, and dodgy assumptions"
)
if series == "Walking Dataloss"
else ""
)
description = (
f'
{description_text}
' if description_text else ""
)
head = f""""""
list_of_entries = (
""
+ "".join(
("
")
for entry in entries
if "series" in entries[entry]
and common.slugify(series) == common.slugify(entries[entry]["series"])
)
+ ""
)
list_of_series = (
(
"
Series:
"
+ "
"
+ "".join(
(
"
"
+ (
f"{series}"
if a_series == series
else (
f'{a_series}'
)
)
+ "