Enable search promotions

This commit is contained in:
datalets 2019-08-12 15:56:27 +02:00
parent b79e43249c
commit a7975cb331
2 changed files with 6 additions and 2 deletions

View File

@ -22,8 +22,10 @@
<ul>
{% for pick in search_picks %}
<li>
<h2><a href="{{ pick.page.url }}">{{ pick.page }}</a></h2>
<p>{{ pick.description }}</p>
<h4><a href="{% pageurl pick.page %}">{{ pick.page.title }}</a></h4>
{% if pick.description %}
<p>{{ pick.description }}</p>
{% endif %}
</li>
{% endfor %}
</ul>

View File

@ -42,6 +42,8 @@ INSTALLED_APPS = [
'wagtail.contrib.settings',
'wagtail.contrib.forms',
'wagtail.contrib.redirects',
'wagtail.contrib.search_promotions',
'wagtail.embeds',
'wagtail.sites',
'wagtail.users',