Show description/content of posts/assets
This commit is contained in:
@@ -1615,6 +1615,10 @@ a.learn-more
|
||||
flex-direction: column
|
||||
justify-content: space-between
|
||||
|
||||
.description
|
||||
font-size: .9em
|
||||
padding-top: 5px
|
||||
|
||||
.title
|
||||
display: block
|
||||
word-break: break-word
|
||||
|
@@ -97,6 +97,12 @@ script.
|
||||
| {% endif %}
|
||||
.info
|
||||
a.title(href="{{ url_for_node(node=n) }}") {{ n.name }}
|
||||
p.description(href="{{ url_for_node(node=n) }}")
|
||||
| {% if n.node_type == 'post' %}
|
||||
| {{ n.properties.content | striptags | truncate(125, end="... <small>read more</small>") | safe | hide_none }}
|
||||
| {% else %}
|
||||
| {{ n.description | striptags | truncate(125, end="... <small>read more</small>") | hide_none }}
|
||||
| {% endif %}
|
||||
span.details
|
||||
span.what {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}{{ n.node_type | undertitle }}{% endif %} ·
|
||||
span.when {{ n._updated | pretty_date }} by
|
||||
|
Reference in New Issue
Block a user