2024-02-14 16:01:14 +00:00
|
|
|
{{ define "main" }}
|
2024-02-27 10:43:33 +00:00
|
|
|
<section class=" bg-cover items-center min-h-screen pt-32 pb-32" style="background-image:url('../images/blog-list-bg.jpg')">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<h1 style="color:white;text-shadow:5x 5x #000">Aktuelles</h1>
|
2024-02-23 06:34:03 +00:00
|
|
|
<div id="accordion" class="divide-y divide-gray-200">
|
|
|
|
|
{{ range $index, $page := .Data.Pages }}
|
|
|
|
|
<div class="accordion-item">
|
|
|
|
|
<h2 class="accordion-header mb-0" style="padding:0!important;">
|
|
|
|
|
<button class="accordion-button relative flex items-center w-full py-4 px-5 text-left text-gray-800 bg-gray-100 focus:outline-none" type="button">
|
2024-02-27 10:43:33 +00:00
|
|
|
<i class="far text-primary fa-bullhorn"></i> {{ .Title }}
|
2024-02-23 06:34:03 +00:00
|
|
|
</button>
|
|
|
|
|
</h2>
|
|
|
|
|
<div class="accordion-collapse hidden">
|
2024-02-27 10:43:33 +00:00
|
|
|
<div class="accordion-body py-14 px-10 bg-white">
|
|
|
|
|
<p>
|
|
|
|
|
{{ .Params.excerpt }}
|
|
|
|
|
</p>
|
|
|
|
|
<i class="far text-primary fa-arrow-right"></i> <a href="{{ .Permalink }}">{{ .Params.linktext }}</a>
|
2024-02-14 16:01:14 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-02-23 06:34:03 +00:00
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
2024-02-27 10:43:33 +00:00
|
|
|
</div>
|
|
|
|
|
</section>
|
2024-02-23 06:34:03 +00:00
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
const accordionButtons = document.querySelectorAll('.accordion-button');
|
|
|
|
|
|
|
|
|
|
accordionButtons.forEach(button => {
|
|
|
|
|
button.addEventListener('click', () => {
|
|
|
|
|
const accordionCollapse = button.parentElement.nextElementSibling;
|
|
|
|
|
|
|
|
|
|
button.classList.toggle('active');
|
|
|
|
|
if (button.classList.contains('active')) {
|
|
|
|
|
button.parentElement.nextElementSibling.classList.remove('hidden');
|
|
|
|
|
accordionCollapse.style.maxHeight = accordionCollapse.scrollHeight + 'px';
|
|
|
|
|
} else {
|
|
|
|
|
accordionCollapse.style.maxHeight = null;
|
|
|
|
|
button.parentElement.nextElementSibling.classList.add('hidden');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{{ end}}
|