Set the title and header via GET params

This commit is contained in:
PCoder 2019-05-04 09:40:09 +02:00
parent 1ccb4e9790
commit 3afa969206
2 changed files with 3 additions and 3 deletions

View file

@ -28,9 +28,9 @@
{% endif %}
<h1> {% page_attribute 'page_title' %} </h1>
<h1>{% if request.GET.page_title %}{{request.GET.page_title}}{% else %}{% page_attribute 'page_title' %}{% endif %}</h1>
<hr class="small">
<span class="subheading"> {% page_attribute 'meta_description' %}</span>
<span class="subheading">{% if request.GET.page_subtitle %}{{request.GET.page_subtitle}}{% else %}{% page_attribute 'meta_description' %}{% endif %}</span>
</div>
</div>
</div>

View file

@ -9,7 +9,7 @@
<meta name="author" content="ungleich glarus ag">
<title>
{% block title %}
{% page_attribute "page_title" %}
{% if request.GET.page_title %}{{request.GET.page_title}}{% else %}{% page_attribute "page_title" %}{% endif %}
{% endblock %}
</title>
{% addtoblock "external-css" %}