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( ("
  1. " + common.link_to_entry(entry, omit_series=True) + "
  2. ") for entry in entries if "series" in entries[entry] and common.slugify(series) == common.slugify(entries[entry]["series"]) ) + "
" ) list_of_series = ( ( "

Series:

" + "" ) if len(common.series) > 0 else "" ) return common.print_html( f""" {common.head} {head} {series}

{series}

{description}

{common.footer} """ )