forked from github/pelican
Put summary in notmyidea "description" HTML metadata
This commit is contained in:
parent
7e52b61934
commit
d536cd2239
2 changed files with 9 additions and 0 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue