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)
head = f""""""
list_of_entries = (
"
"
+ "".join(
("
" + common.link_to_entry(entry) + "
")
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}'
)
)
+ "