Pipe description & content of featured nodes through markdown
This commit is contained in:
parent
6f9feea8a9
commit
4c704c8cda
@ -84,9 +84,9 @@
|
|||||||
a.title(href="{{ url_for_node(node=n) }}") {{ n.name }}
|
a.title(href="{{ url_for_node(node=n) }}") {{ n.name }}
|
||||||
p.description(href="{{ url_for_node(node=n) }}")
|
p.description(href="{{ url_for_node(node=n) }}")
|
||||||
| {% if n.node_type == 'post' %}
|
| {% if n.node_type == 'post' %}
|
||||||
| {{ n.properties.content | striptags | truncate(140, end="... <small>read more</small>") | safe | hide_none }}
|
| {{ n.properties.content | markdown | striptags | truncate(140, end="... <small>read more</small>") | safe | hide_none }}
|
||||||
| {% else %}
|
| {% else %}
|
||||||
| {{ n.description | striptags | truncate(140, end="... <small>read more</small>") | safe | hide_none }}
|
| {{ n.description | markdown | striptags | truncate(140, end="... <small>read more</small>") | safe | hide_none }}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
span.details
|
span.details
|
||||||
span.what {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}{{ n.node_type | undertitle }}{% endif %} ·
|
span.what {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}{{ n.node_type | undertitle }}{% endif %} ·
|
||||||
|
Loading…
x
Reference in New Issue
Block a user