added support for custom HTML metatags, removal of HTML tags in page summary
This commit is contained in:
parent
8dbf0de3c2
commit
2277b65174
@ -1,8 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ page.title }} – {{ SITENAME }}{% endblock %}
|
||||
|
||||
{% block html_metadata %}
|
||||
{% if page.html_metadata %}
|
||||
{% for meta in page.html_metadata %}
|
||||
<meta name="{{ meta.name }}" content="{{ meta.content }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock html_metadata %}
|
||||
|
||||
{% block metadesc %}
|
||||
{% if page.summary %}{{ page.summary|e }}{% else %}{{ super() }}{% endif %}
|
||||
{% if page.summary %}{{ page.summary | striptags | e }}{% else %}{{ super() }}{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_all %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user