Katalog Hinzugefügt
This commit is contained in:
parent
d1250c6ded
commit
8933002b68
|
|
@ -2,7 +2,6 @@
|
||||||
title = "Katalog"
|
title = "Katalog"
|
||||||
date = "2019-01-10T04:14:10+01:00"
|
date = "2019-01-10T04:14:10+01:00"
|
||||||
draft = false
|
draft = false
|
||||||
type = "catalog"
|
|
||||||
keywords = []
|
keywords = []
|
||||||
|
type = "catalog"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
+++
|
||||||
|
title = "Abdeckungen"
|
||||||
|
date = "2019-01-10T04:14:10+01:00"
|
||||||
|
draft = false
|
||||||
|
type = "catalog"
|
||||||
|
keywords = []
|
||||||
|
+++
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
+++
|
||||||
|
title = "Grabsteine"
|
||||||
|
date = "2019-01-10T04:14:10+01:00"
|
||||||
|
draft = false
|
||||||
|
keywords = []
|
||||||
|
type = "catalog"
|
||||||
|
+++
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
|
|
@ -0,0 +1,18 @@
|
||||||
|
+++
|
||||||
|
title = "Test"
|
||||||
|
date = "2019-05-02T06:30:55+02:00"
|
||||||
|
draft = false
|
||||||
|
price = ""
|
||||||
|
type = "catalog"
|
||||||
|
alt = "Bildergalerie für Test"
|
||||||
|
description = "Bildergalerie für Test"
|
||||||
|
keywords = []
|
||||||
|
|
||||||
|
[[resources]]
|
||||||
|
title = "Test #:counter"
|
||||||
|
src = "bilder/platzhalter.jpg"
|
||||||
|
[resources.params]
|
||||||
|
alt = "Bild von einem Test"
|
||||||
|
+++
|
||||||
|
|
||||||
|
{{< gallery "bilder/**.jpg" >}}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
+++
|
||||||
|
title = "Laternen"
|
||||||
|
date = "2019-01-10T04:14:10+01:00"
|
||||||
|
draft = false
|
||||||
|
type = "catalog"
|
||||||
|
keywords = []
|
||||||
|
+++
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
|
|
@ -0,0 +1,18 @@
|
||||||
|
+++
|
||||||
|
title = "{{ replace .Name "-" " " | title }}"
|
||||||
|
date = "{{ .Date }}"
|
||||||
|
draft = true
|
||||||
|
price = ""
|
||||||
|
type = "catalog"
|
||||||
|
alt = "Bildergalerie für {{ replace .Name "-" " " | title }}"
|
||||||
|
description = "Bildergalerie für {{ replace .Name "-" " " | title }}"
|
||||||
|
keywords = []
|
||||||
|
|
||||||
|
[[resources]]
|
||||||
|
title = "{{ replace .Name "-" " " | title }} #:counter"
|
||||||
|
src = "bilder/platzhalter.jpg"
|
||||||
|
[resources.params]
|
||||||
|
alt = "Bild von einem {{ replace .Name "-" " " | title }}"
|
||||||
|
+++
|
||||||
|
|
||||||
|
{{< gallery "bilder/**.jpg" >}}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
{{- $ctx := . -}}
|
||||||
|
{{- $page := (index .Pages 0) -}}
|
||||||
|
{{- $image := "" -}}
|
||||||
|
{{- $images := slice -}}
|
||||||
|
{{- with $page -}}
|
||||||
|
{{- $images = $page.Resources.ByType "image" }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- $images = .Resources.ByType "image" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- range $images -}}
|
||||||
|
{{ if .Params.featured }}
|
||||||
|
{{ $image = . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if $image }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $image = index $images 0 }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with $images }}
|
||||||
|
<li class="padding"> {{- partial "figure.html" (dict "ctx" $ctx "image" $image "class" "gallery" "showTitle" true "showDescription" true) -}}
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
@ -4,6 +4,15 @@
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main id="list">
|
<main id="list">
|
||||||
|
<h1 class="padding">{{ .Title }}</h1>
|
||||||
|
<ul class="list-unstyled flex row gallery">
|
||||||
|
{{- range .Sections -}}
|
||||||
|
{{- .Render "li" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- range .Pages -}}
|
||||||
|
{{- .Render "li" -}}
|
||||||
|
{{- end -}}
|
||||||
|
</ul>
|
||||||
{{- with .Content -}}
|
{{- with .Content -}}
|
||||||
<div class="content flex column">
|
<div class="content flex column">
|
||||||
<div class="padding">
|
<div class="padding">
|
||||||
|
|
@ -11,10 +20,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<ul class="list-unstyled flex column">
|
</main>
|
||||||
{{- range .Pages -}}
|
|
||||||
{{- .Render "li" -}}
|
|
||||||
{{- end -}}
|
|
||||||
</ul>
|
|
||||||
<my-catalog-similar hello="test"></my-catalog-similar>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue