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( ("
  1. " + common.link_to_entry(entry) + "
  2. ") for entry in reversed(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}


{common.footer} """ )