Set the title and header via GET params
This commit is contained in:
parent
1ccb4e9790
commit
3afa969206
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in a new issue