mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Keep raw metadata text (but for summary)
This commit is contained in:
parent
cbc609c8f0
commit
9c4b40fd35
3 changed files with 6 additions and 1 deletions
|
|
@ -71,7 +71,10 @@ class RstReader(Reader):
|
|||
if element.tagname == 'field': # custom fields (e.g. summary)
|
||||
name_elem, body_elem = element.children
|
||||
name = name_elem.astext()
|
||||
value = render_node_to_html(document, body_elem)
|
||||
if name == 'summary':
|
||||
value = render_node_to_html(document, body_elem)
|
||||
else:
|
||||
value = body_elem.astext()
|
||||
else: # standard fields (e.g. address)
|
||||
name = element.tagname
|
||||
value = element.astext()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue