mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
Add banner to contact page
This commit is contained in:
parent
afa32fe698
commit
a7020638a2
4 changed files with 10 additions and 5 deletions
10
.eleventy.js
10
.eleventy.js
|
|
@ -90,10 +90,12 @@ ${content}
|
|||
<div class="page-banner">
|
||||
<div class="background">${backgroundHTML}</div>
|
||||
<div class="content">
|
||||
<div class="title">${title}</div>
|
||||
<div>
|
||||
${content}
|
||||
</div>
|
||||
${ title ? '<div class="title">' + title + '</div>' : '' }
|
||||
${
|
||||
// The '\n's here are required so that markdwon still gets rendered in the
|
||||
// content block:
|
||||
content.trim() ? '<div>\n' + content + '\n</div>' : ''
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
|
|
|||
BIN
images/contact-banner.jpg
Normal file
BIN
images/contact-banner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 MiB |
2
index.md
2
index.md
|
|
@ -5,7 +5,7 @@ eleventyNavigation:
|
|||
order: 1
|
||||
---
|
||||
{% banner "Angestöpselt", "images/home-banner.jpg", "Kinder und Jugendliche verfolgen der Präsentation eines 3D-Druckers" %}
|
||||
"Wir bieten Bedürftigen Zugang in die digitale Welt"
|
||||
Wir bieten Bedürftigen Zugang in die digitale Welt
|
||||
{% endbanner %}
|
||||
|
||||
{% section %}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ eleventyNavigation:
|
|||
key: Kontakt
|
||||
order: 100
|
||||
---
|
||||
{% banner "", "images/contact-banner.jpg", "" %}
|
||||
{% endbanner %}
|
||||
|
||||
# Kontakt zu uns aufnehmen
|
||||
|
||||
Schön, dass Sie sich für unsere Arbeit interessieren! Bitte wählen Sie unten
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue