Commit ceff8044628adf8973565ca35a1e1c02e81b4982
Don't show series for every entry on a series page
Grey Nicholson committed on 10/3/2021, 1:56:23 PMParent: c4b58da94cc6637dd07e7dbb3a27f47202177bf4
Files changed
generator/common.py | changed |
generator/templates/series.py | changed |
generator/common.py | |||
---|---|---|---|
@@ -124,9 +124,9 @@ | |||
124 | 124 … | + "<span>" | |
125 | 125 … | + ('<span class="hidden"> ·</span>' + " ") | |
126 | 126 … | + ( | |
127 | 127 … | "from " + "<cite>" + entries[id]["series"] + "</cite>" + " · " | |
128 | - if "series" in entries[id] | ||
128 … | + if "series" in entries[id] and "omit_series" not in kwargs | ||
129 | 129 … | else "" | |
130 | 130 … | ) | |
131 | 131 … | + ( | |
132 | 132 … | f'<time datetime="{entries[id]["date"]:%Y-%m-%dT%H:%MZ}">' |
generator/templates/series.py | ||
---|---|---|
@@ -45,9 +45,9 @@ | ||
45 | 45 … | head = f"""<link href="{common.url_of_series_feed(series)}" rel="alternate" type="application/atom+xml" title="{series}">""" |
46 | 46 … | list_of_entries = ( |
47 | 47 … | "<ol>" |
48 | 48 … | + "".join( |
49 | - ("<li>" + common.link_to_entry(entry) + "</li>") | |
49 … | + ("<li>" + common.link_to_entry(entry, omit_series=True) + "</li>") | |
50 | 50 … | for entry in entries |
51 | 51 … | if "series" in entries[entry] |
52 | 52 … | and common.slugify(series) == common.slugify(entries[entry]["series"]) |
53 | 53 … | ) |
Built with git-ssb-web