feat: added cta to page
This commit is contained in:
parent
e881eed64e
commit
b89d3e1d2d
|
@ -1,9 +1,6 @@
|
||||||
{
|
{
|
||||||
"title": "Schreib mir!",
|
"title": "Schreib mir!",
|
||||||
"summary": "Hast du schon lange nichts mehr von mir gehört?
|
"summary": "Hast du schon lange nichts mehr von mir gehört? Das tut mir leid! Möchtest du den ersten Schritt und mich auf meine Nachlässigkeit aufmerksam machen?",
|
||||||
Das tut mir leid!
|
|
||||||
Im Alltag gehen mir hin und wieder Dinge verlohren.
|
|
||||||
Bitte mache den ersten Schritt und mache ich auf meine Nachlässigkeit aufmerksam.",
|
|
||||||
"buttonText": "Hüja!",
|
"buttonText": "Hüja!",
|
||||||
"buttonUrl": "/contact/"
|
"buttonUrl": "/contact/"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
|
||||||
|
<!--add call to action-->
|
||||||
|
<!--Do you need an extra cta per-instance?-->
|
||||||
|
{% set ctaContent = cta %}
|
||||||
|
{% include "partials/cta.html" %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,18 +2,20 @@
|
||||||
SPDX-FileCopyrightText: 2021 Software Ingenieur Begerad <swingbe.de>
|
SPDX-FileCopyrightText: 2021 Software Ingenieur Begerad <swingbe.de>
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
-->
|
-->
|
||||||
|
<!--use Nunjucks set feature to create a variable-->
|
||||||
{% set ctaPrefix = cta %}
|
{% set ctaPrefix = cta %}
|
||||||
|
<!--Do you want to override cta on a per-instance bases?-->
|
||||||
{% if ctaContent %}
|
{% if ctaContent %}
|
||||||
{% set ctaPrefix = ctaContent %}
|
{% set ctaPrefix = ctaContent %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<article>
|
<article>
|
||||||
<div>
|
<div class="p-5 my-4 bg-light rounded-3">
|
||||||
<div>
|
<h2>{{ ctaPrefix.title }}</h2>
|
||||||
<h2>{{ ctaPrefix.title }}</h2>
|
<p class="lead">{{ ctaPrefix.summary }}</p>
|
||||||
<p>{{ ctaPrefix.summary }}</p>
|
<p>
|
||||||
<div>
|
<a href="{{ ctaPrefix.buttonUrl }}"
|
||||||
<a href="{{ ctaPrefix.buttonUrl }}">{{ ctaPrefix.buttonText }}</a>
|
class="btn btn-success btn-lg">
|
||||||
</div>
|
{{ ctaPrefix.buttonText }}</a>
|
||||||
</div>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -12,9 +12,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
<h2>Kontakt</h2>
|
<h2>Kontakt</h2>
|
||||||
<p>
|
<p>
|
||||||
Bitte richten sie Fragen zu dieser Webseite an
|
Ich bitte dich Fragen zu dieser Webseite an
|
||||||
<a href="mailto:{{ site.author.email }}">{{ site.author.name }}
|
<a href="mailto:{{ site.author.email }}">
|
||||||
</a>.
|
{{ site.author.name }}
|
||||||
|
</a> zu richten.
|
||||||
</p>
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
<h2>Impressum</h2>
|
<h2>Impressum</h2>
|
||||||
|
|
|
@ -12,7 +12,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
<div class="p-5 my-4 bg-light rounded-3">
|
<div class="p-5 my-4 bg-light rounded-3">
|
||||||
<h1>Willkommen!</h1>
|
<h1>Willkommen!</h1>
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
<b>Willkommen auf der Website von <b>{{ site.author.name }}</b>.
|
Willkommen auf meiner
|
||||||
|
(<b>{{ site.author.name }}</b>)
|
||||||
|
Website.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue