Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
{# Show the summary in a second line #}
<p class="has-text-grey">
<small>
- {{ pkg.summary }}
+ {{ pkg.summary | summary }}
</small>
</p>
</div>
</h6>
{% else %}
<h6 class="subtitle is-6">
- {{ build.pkg.summary }}
+ {{ build.pkg.summary | summary }}
</h6>
{% endif %}
"hostname" : filters.hostname,
"markdown" : filters._markdown,
"static_url" : filters.static_url,
+ "summary" : filters.summary,
# Add some Python built-ins
"dir" : dir,
handler = ctx.get("handler")
return handler.static_url(*args, **kwargs)
+
+def summary(summary):
+ """
+ Removes any trailing full stops
+ """
+ return summary.removesuffix(".")