# HG changeset patch # User Goffi # Date 1516607167 -3600 # Node ID 7108731be0b95cc8ec5b5de412486c26e94a941c # Parent 920f03abba53ba555ab8ec3112a187b376df500e blog/articles: don't set content in title block if embedded, to avoid exception with missing parent title diff -r 920f03abba53 -r 7108731be0b9 default/blog/articles.html --- a/default/blog/articles.html Sun Jan 21 21:08:06 2018 +0100 +++ b/default/blog/articles.html Mon Jan 22 08:46:07 2018 +0100 @@ -3,12 +3,14 @@ {% import 'blog/macros.html' as blog with context %} {% block title -%} - {%- if items|length == 1 -%} - {{- items[0].title|default(items[0].content, true)|truncate(60, True, '…') + ' - ' + C.APP_NAME -}} - {%- else -%} - {{- super() -}} + {%- if not embedded -%} + {%- if items|length == 1 -%} + {{- items[0].title|default(items[0].content, true)|truncate(60, True, '…') + ' - ' + C.APP_NAME -}} + {%- else -%} + {{- super() -}} + {%- endif -%} {%- endif -%} -{%- endblock %} +{%- endblock title -%} {% block body %}