article.summary, and page.summary are always set
Pelican will use `Summary:` or trim the contentmain
parent
d2533f8f57
commit
27de618fdb
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if article.summary %}
|
|
||||||
<meta name="description" content="{{ article.summary|striptags }}">
|
<meta name="description" content="{{ article.summary|striptags }}">
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if page.summary %}
|
|
||||||
<meta name="description" content="{{ page.summary|striptags }}">
|
<meta name="description" content="{{ page.summary|striptags }}">
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
|
|
Loading…
Reference in New Issue