1
0
Fork 0
forked from github/pelican

Put summary in notmyidea "description" HTML metadata

This commit is contained in:
Justin Mayer 2020-04-15 16:54:17 +02:00
commit d536cd2239
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,12 @@
{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block head -%}
{{ super() -}}
{% if article.summary %}
<meta name="description" content="{{ article.summary | striptags | safe | truncate(150) }}" />
{% endif %}
{% endblock %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block extra_head %}