Replace include with partial tag

This commit is contained in:
2021-04-06 19:14:36 +02:00
parent 201ef73639
commit 120e63808a
4 changed files with 17 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
{% load static %}
{% load i18n %}
{% load lostplaces %}
{% block additional_head %}
<link rel="stylesheet" href="{% static 'maps/ol.css' %}" type="text/css">
<script src="{% static 'maps/ol.js' %}"></script>
@@ -11,11 +12,13 @@
{% block maincontent %}
{% include 'partials/welcome.html' %}
{% partial 'welcome' %}
<article class="LP-TextSection">
</article>
{% include 'partials/osm_map.html' with config=mapping_config modifier='wide' %}
{% partial 'osm_map' %}
{% set config mapping_config %}
{% set modifier 'wide' %}
{% endpartial %}
<div class="LP-PlaceGrid">
<h1 class="LP-Headline LP-Headline">{% translate 'Explore the latest places' %}</h1>
<ul class="LP-PlaceGrid__Grid">
@@ -26,5 +29,4 @@
{% endfor %}
</ul>
</div>
{% endblock maincontent %}