feat: added cta data

This commit is contained in:
Begerad, Stefan 2021-10-28 15:11:53 -04:00
parent 554a02961f
commit e881eed64e
3 changed files with 29 additions and 1 deletions

9
src/_data/cta.json Normal file
View File

@ -0,0 +1,9 @@
{
"title": "Schreib mir!",
"summary": "Hast du schon lange nichts mehr von mir gehört?
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!",
"buttonUrl": "/contact/"
}

View File

@ -0,0 +1,19 @@
<!--
SPDX-FileCopyrightText: 2021 Software Ingenieur Begerad <swingbe.de>
SPDX-License-Identifier: GPL-3.0-or-later
-->
{% set ctaPrefix = cta %}
{% if ctaContent %}
{% set ctaPrefix = ctaContent %}
{% endif %}
<article>
<div>
<div>
<h2>{{ ctaPrefix.title }}</h2>
<p>{{ ctaPrefix.summary }}</p>
<div>
<a href="{{ ctaPrefix.buttonUrl }}">{{ ctaPrefix.buttonText }}</a>
</div>
</div>
</div>
</article>

View File

@ -1,7 +1,7 @@
<!--
SPDX-FileCopyrightText: 2021 Software Ingenieur Begerad <swingbe.de>
SPDX-License-Identifier: GPL-3.0-or-later
-->
-->
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">