git ssb

0+

Grey the earthling / gkn.me.uk



Commit ceff8044628adf8973565ca35a1e1c02e81b4982

Don't show series for every entry on a series page

Grey Nicholson committed on 10/3/2021, 1:56:23 PM
Parent: c4b58da94cc6637dd07e7dbb3a27f47202177bf4

Files changed

generator/common.pychanged
generator/templates/series.pychanged
generator/common.pyView
@@ -124,9 +124,9 @@
124124 + "<span>"
125125 + ('<span class="hidden"> ·</span>' + " ")
126126 + (
127127 "from " + "<cite>" + entries[id]["series"] + "</cite>" + " · "
128- if "series" in entries[id]
128 + if "series" in entries[id] and "omit_series" not in kwargs
129129 else ""
130130 )
131131 + (
132132 f'<time datetime="{entries[id]["date"]:%Y-%m-%dT%H:%MZ}">'
generator/templates/series.pyView
@@ -45,9 +45,9 @@
4545 head = f"""<link href="{common.url_of_series_feed(series)}" rel="alternate" type="application/atom+xml" title="{series}">"""
4646 list_of_entries = (
4747 "<ol>"
4848 + "".join(
49- ("<li>" + common.link_to_entry(entry) + "</li>")
49 + ("<li>" + common.link_to_entry(entry, omit_series=True) + "</li>")
5050 for entry in entries
5151 if "series" in entries[entry]
5252 and common.slugify(series) == common.slugify(entries[entry]["series"])
5353 )

Built with git-ssb-web