erste Fassung erstellt
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{{ define "main" }}
|
||||
<article class="page">
|
||||
<div class="container">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
|
||||
{{ range .Params.galerien }}
|
||||
<section class="ausflug-gruppe">
|
||||
<div class="ausflug-inner">
|
||||
<div class="ausflug-text">
|
||||
<h2>{{ .titel }}</h2>
|
||||
{{ with .text }}<p>{{ . }}</p>{{ end }}
|
||||
{{ with .punkte }}
|
||||
<ul class="ausflug-punkte">
|
||||
{{ range . }}<li>{{ . }}</li>{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="ausflug-bild">
|
||||
<div class="slider slider--single">
|
||||
<button type="button" class="slider-arrow slider-prev" aria-label="Zurück">❮</button>
|
||||
<div class="slider-track">
|
||||
{{ range .bilder }}
|
||||
<a href="{{ . }}" class="slider-slide">
|
||||
<img src="{{ . }}" alt="{{ $.Title }}" loading="lazy">
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<button type="button" class="slider-arrow slider-next" aria-label="Weiter">❯</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "nav.html" . }}
|
||||
<main class="main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
<script src="/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
{{ with .Params.banner }}
|
||||
<section class="page-banner" style="background-image: url('{{ . }}');"></section>
|
||||
{{ end }}
|
||||
<article class="page">
|
||||
<div class="container">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,25 @@
|
||||
{{ define "main" }}
|
||||
<div class="container">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<div class="fewo-grid">
|
||||
{{ range .Pages }}
|
||||
<div class="fewo-card">
|
||||
{{ with .Params.bild }}
|
||||
<img src="{{ . }}" alt="{{ $.Title }}" class="fewo-card-img">
|
||||
{{ end }}
|
||||
<div class="fewo-card-body">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<p class="fewo-meta">
|
||||
{{ with .Params.groesse }}<span>{{ . }}</span>{{ end }}
|
||||
{{ with .Params.personen }}<span>bis {{ . }} Personen</span>{{ end }}
|
||||
{{ with .Params.preis }}<span>ab {{ . }} € / Nacht</span>{{ end }}
|
||||
</p>
|
||||
<p>{{ .Summary }}</p>
|
||||
<a href="{{ .Permalink }}" class="btn">Mehr erfahren</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,8 @@
|
||||
{{ define "main" }}
|
||||
<article class="page">
|
||||
<div class="container">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user