|
@@ -107,6 +107,11 @@ def main():
|
|
|
'title': f"Quip",
|
|
|
'contents': Template.quote({'quotelist': [q]}),
|
|
|
'copy': no_copy,
|
|
|
+ 'opengraph': {
|
|
|
+ 'title': f'quip:{uuid}',
|
|
|
+ 'url': f'/quip/{uuid}/',
|
|
|
+ 'description': q.content,
|
|
|
+ },
|
|
|
}))
|
|
|
|
|
|
# sort 'em and make the combined page
|
|
@@ -124,10 +129,16 @@ def main():
|
|
|
q = Quote.from_file(Path.data('quotes', uuid))
|
|
|
quotes.append(q)
|
|
|
with Path.write('quotes', uuid, 'index.html') as f:
|
|
|
+ contents = Template.quote({'quotelist': [q]})
|
|
|
f.write(Template.main({
|
|
|
'title': f"Quote",
|
|
|
- 'contents': Template.quote({'quotelist': [q]}),
|
|
|
+ 'contents': contents,
|
|
|
'copy': no_copy,
|
|
|
+ 'opengraph': {
|
|
|
+ 'title': f'quote:{uuid}',
|
|
|
+ 'url': f'/quote/{uuid}/',
|
|
|
+ 'description': f'{q.content}\n---{q.author}',
|
|
|
+ },
|
|
|
}))
|
|
|
|
|
|
# sort 'em and make their combined page
|