How did this use to work?
master
Niels G. W. Serup 2 weeks ago
parent efd62a6f56
commit 6c357f8d76
Signed by: ngws
GPG Key ID: 38EEEBCE67324F19
  1. 2
      scripts/transform-file.py

@ -112,7 +112,7 @@ def markdown_to_html(input_file, output_dir):
pages_new.append(('Potators', {'abstract': 'Do not look.', 'lastupdated': '2011'}, '/potator/', '/potator/'))
pages_new.sort(key=lambda p: ('9999' if p[1] is None else p[1].get('lastupdated'), p[0]), reverse=True)
pages_new.sort(key=lambda p: ('9999' if p[1] is None else p[1].get('lastupdated') or '9999', p[0]), reverse=True)
md = ''
for page in pages_new:
ptitle, pyaml, url, _ = page

Loading…
Cancel
Save