Links zu Datenschutzerklärung und Impressum eingefügt

This commit is contained in:
Andreas Hnida 2024-02-27 10:43:33 +00:00
commit 67542d11d5
10 changed files with 70 additions and 72 deletions

View file

@ -1,6 +0,0 @@
---
title: "Neue Domiziladresse ab dem 01.09.2023"
date: 2024-02-22T20:33:26Z
draft: false
tags: []
---

View file

@ -1,6 +0,0 @@
---
title: "Vorankuendigung Zusatzmodule Dienst Und Tourenplan zum 01.11.2022"
date: 2024-02-22T20:39:10Z
draft: false
tags: []
---

View file

@ -35,10 +35,10 @@ support@verua.ch
[Kontakt](https://link-url-here.org)
..column..
[Datenschutzerklärung](https://link-url-here.org)
[Datenschutzerklärung](/datenschutzerklaerung)
..column..
[Impressum](https://link-url-here.org)
[Impressum](/impressum)
{{< /columns >}}

View file

@ -5,13 +5,17 @@
</div>
{{ if eq .Section "bestellung" }}
{{ $formularjs := resources.Get "js/bestellformular.js" | minify }}
<script src="{{ $formularjs.RelPermalink }}"></script>
{{ else if eq .Params.kontaktformular true }}
{{ $formularjs := resources.Get "js/kontaktformular.js" | minify }}
{{/* TODO Captcha rauswerfen, falls wir es nicht mehr brauchen */}}
{{/* {{ $captchaSystemJS := resources.Get "vendor/captcha-system/js/main.js" | minify }} */}}
{{/* {{ $captchaSystemCSS := resources.Get "vendor/captcha-system/css/main.css" | minify }} */}}
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="{{ $formularjs.RelPermalink }}"></script>
{{/* <script src="{{ $captchaSystemJS.RelPermalink }}"></script> */}}
{{/* <link rel="stylesheet" href="{{ $captchaSystemCSS.RelPermalink }}"> */}}

View file

@ -1,23 +1,28 @@
{{ define "main" }}
<h1>Blog</h1>
<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>
<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">
<i class="verua-icon far text-primary fa-bullhorn"></i>&nbsp; {{ .Title }}
<i class="far text-primary fa-bullhorn"></i>&nbsp; {{ .Title }}
</button>
</h2>
<div class="accordion-collapse hidden">
<div class="accordion-body py-4 px-5">
{{ .Content }}
<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>
</div>
</div>
</div>
{{ end }}
</div>
</div>
</section>
<script>
document.addEventListener('DOMContentLoaded', () => {
const accordionButtons = document.querySelectorAll('.accordion-button');

View file

@ -1,5 +1,5 @@
{{ define "main" }}
<section class="section pt-7">
<section class="bg-cover items-center pt-32 pb-32 ">
<div class="container">
<div class="row justify-center">
<article class="lg:col-10">
@ -61,34 +61,49 @@
</ul>
</div>
{{ end }}
<div class="lg:col-4 flex items-center">
{{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
</div>
</div>
<!-- comments -->
{{ if site.Config.Services.Disqus.Shortname }}
<div class="mt-20">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
</article>
</div>
<!-- Related posts -->
{{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }}
{{ $related = $related | shuffle | first 3 }}
{{ with $related }}
<div class="section pb-0">
<h2 class="h3 mb-12">{{ i18n "related_posts" }}</h2>
<div class="row">
{{ range . }}
<div class="lg:col-4">
{{ partial "components/blog-card" . }}
</div>
{{ end }}
<div id="accordion" class="divide-y divide-gray-200">
{{ $currentPage := . }}
{{ range first 3 (where .Site.RegularPages "Section" $currentPage.Section) }}
{{ if ne .RelPermalink $currentPage.RelPermalink }}
<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">
<i class="far text-primary fa-bullhorn"></i>&nbsp; {{ .Title }}
</button>
</h2>
<div class="accordion-collapse hidden">
<div class="accordion-body py-4 px-5">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>
</div>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
<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>
</div>
</section>
{{ end }}

View file

@ -1,9 +1,9 @@
{{/* Home Template File */}}
{{ define "main" }}
<!-- Hero Slider -->
<section class="hero-slider h-screen md:h-[750px]">
<section class="hero-slider h-screen md:h-1/4">
<div class="verua-slider-wrapper">
<div class="verua-slider h-screen md:h-[750px]" id="verua-slider">
<div class="verua-slider h-screen" id="verua-slider">
{{ range $i, $e:= .Params.heroslider }}
<div class="slides h-screen md:h-full {{ if (eq $i 0) }}current{{ end }}" style="background-image:url('{{ .image }}')">
<h1 class="mb-4 text-4xl font-extrabold leading-none tracking-tight md:text-5xl lg:text-6xl">

View file

@ -1,28 +1,14 @@
<!-- Language List -->
<!-- Language Switcher -->
{{ $current := .Context }}
{{ $class := .Class }}
{{ $context := .Context }}
{{ $pageLang := $context.Lang }}
{{ $base:= urls.Parse site.Home.Permalink }}
{{ $siteLanguages := site.Home.AllTranslations }}
{{ $pageLink := replace (replace $context.RelPermalink (add $pageLang "/") "") $base.Path "/" }}
{{ if $context.IsTranslated }}
{{ if $current.IsTranslated }}
<select class="{{ $class }}" onchange="location = this.value">
{{ range $siteLanguages }}
{{ if eq (string $pageLang) (string .Language) }}
<option
id="{{ .Language }}"
value="{{ replace (add .RelPermalink $pageLink) `//` `/` }}"
selected>
{{ .Language.LanguageName }}
</option>
{{ else }}
<option
id="{{ .Language }}"
value="{{ replace (add .RelPermalink $pageLink) `//` `/` }}">
{{ .Language.LanguageName }}
</option>
{{ end }}
{{/* Current page language */}}
<option value="{{ $current.Permalink }}" selected>{{ $current.Language.LanguageName }}</option>
{{/* Iterate over all translations of the current page */}}
{{ range $current.Translations }}
<option value="{{ .Permalink }}">{{ .Language.LanguageName }}</option>
{{ end }}
</select>
{{ end }}

View file

@ -1,5 +1,5 @@
<section class="bg-cover items-center pt-32 pb-32 {{ with .Get "light-text" }}light-text {{ end }} {{ with .Get "classes" }} {{ . }} {{ end }}" style="{{ with .Get "fixed" }}background-attachment: fixed;{{ end }}background-image: url('{{ with .Get "background-image" }}{{ . }}{{ end }}');{{ with .Get "background-color" }}background-color: {{ . }}{{ end }};">
<div class="container items-center" >
<section class="bg-cover items-center pt-32 pb-32 {{ with .Get "light-text" }}light-text {{ end }} {{ with .Get "classes" }} {{ . }} {{ end }}" style="{{ with .Get "fixed" }}background-attachment: fixed;{{ end }}{{ with .Get "background-image" }}background-image: url('{{ . }}');{{ else }} background-color:{{ .Get "background-color" | safeCSS }}{{ end }}">
<div class="container items-center py-20" style="{{ with .Get "background-color" }}background-color: {{ . | safeCSS }}{{ end }}" >
{{ .Inner }}
</div>
</section>