|
@@ -131,6 +131,7 @@ def main():
|
|
for uuid in Path.list('quotes'):
|
|
for uuid in Path.list('quotes'):
|
|
q = Quote.from_file(Path.data('quotes', uuid))
|
|
q = Quote.from_file(Path.data('quotes', uuid))
|
|
q.content = markdown.markdown(q.content)
|
|
q.content = markdown.markdown(q.content)
|
|
|
|
+ q.author = markdown.markdown(q.author)
|
|
quotes.append(q)
|
|
quotes.append(q)
|
|
with Path.write('quotes', uuid, 'index.html') as f:
|
|
with Path.write('quotes', uuid, 'index.html') as f:
|
|
contents = Template.quote({'quotelist': [q]})
|
|
contents = Template.quote({'quotelist': [q]})
|
|
@@ -182,7 +183,7 @@ def main():
|
|
with open(Path.data('works', slug, work, 'metadata.yaml')) as f:
|
|
with open(Path.data('works', slug, work, 'metadata.yaml')) as f:
|
|
meta = yaml.safe_load(f)
|
|
meta = yaml.safe_load(f)
|
|
with open(Path.data('works', slug, work, 'text')) as f:
|
|
with open(Path.data('works', slug, work, 'text')) as f:
|
|
- text = markdown.markdown(f.read())
|
|
|
|
|
|
+ text = markdown.markdown(f.read(), extensions=['footnotes'])
|
|
w = Work(
|
|
w = Work(
|
|
slug=meta.get('slug', work),
|
|
slug=meta.get('slug', work),
|
|
category=meta.get('category', slug),
|
|
category=meta.get('category', slug),
|