Skip to content

Commit

Permalink
fix truncate null issue in page.html
Browse files Browse the repository at this point in the history
  • Loading branch information
oltdaniel committed Jan 24, 2022
1 parent 8a6d82d commit 1bf9a27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{{ page.title }} - {{ config.title }}
{% endblock %}
{% block page_meta %}
{% if page.description %}
<meta content="{{ page.description | safe | default(value='') | truncate(length=150) }}" name="description"/>
{% endif %}
{% endblock page_meta %}
{% block content %}
<main class="article-content">
Expand Down

0 comments on commit 1bf9a27

Please # to comment.