Commit c4b58da94cc6637dd07e7dbb3a27f47202177bf4
Display series more distinctly from tags in links to entries
Grey Nicholson committed on 10/3/2021, 1:43:09 PMParent: 30c0128a864b5c20c2b5f87e29a40f0c8e230a06
Files changed
generator/common.py | changed |
generator/common.py | |||
---|---|---|---|
@@ -121,12 +121,16 @@ | |||
121 | 121 … | + ">" | |
122 | 122 … | + "<span>" | |
123 | 123 … | + ("<strong>" + entries[id]["title"] + "</strong>") | |
124 | 124 … | + "<span>" | |
125 … | + + ('<span class="hidden"> ·</span>' + " ") | ||
125 | 126 … | + ( | |
126 | - '<span class="hidden"> ·</span>' | ||
127 | - + " " | ||
128 | - + f'<time datetime="{entries[id]["date"]:%Y-%m-%dT%H:%MZ}">' | ||
127 … | + "from " + "<cite>" + entries[id]["series"] + "</cite>" + " · " | ||
128 … | + if "series" in entries[id] | ||
129 … | + else "" | ||
130 … | + ) | ||
131 … | + + ( | ||
132 … | + f'<time datetime="{entries[id]["date"]:%Y-%m-%dT%H:%MZ}">' | ||
129 | 133 … | + entries[id]["date"].date().isoformat() | |
130 | 134 … | + "</time>" | |
131 | 135 … | ) | |
132 | 136 … | + ( | |
@@ -137,13 +141,8 @@ | |||
137 | 141 … | if "modified" in entries[id] | |
138 | 142 … | else "" | |
139 | 143 … | ) | |
140 | 144 … | + ( | |
141 | - " · " + "<b>" + entries[id]["series"] + "</b>" | ||
142 | - if "series" in entries[id] | ||
143 | - else "" | ||
144 | - ) | ||
145 | - + ( | ||
146 | 145 … | " · " + ", ".join("<b>" + label + "</b>" for label in kwargs["labels"]) | |
147 | 146 … | if "labels" in kwargs | |
148 | 147 … | else "" | |
149 | 148 … | ) |
Built with git-ssb-web