Compare commits
4 Commits
c71365735b
...
5fc12354d0
| Author | SHA1 | Date | |
|---|---|---|---|
| 5fc12354d0 | |||
| e0d55ae9bf | |||
| 1517903a3b | |||
| ecd7973f33 |
@@ -4,3 +4,4 @@ public/
|
|||||||
resources/_gen/
|
resources/_gen/
|
||||||
themes/bluewater/node_modules/
|
themes/bluewater/node_modules/
|
||||||
themes/bluewater/package-lock.json
|
themes/bluewater/package-lock.json
|
||||||
|
themes/bluewater/assets/style.css
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,33 @@
|
|||||||
{{- $image := .Page.Resources.GetMatch .Destination -}}
|
{{- $image := .Page.Resources.GetMatch .Destination -}}
|
||||||
{{- if $image -}}
|
{{- if $image -}}
|
||||||
{{ $image_resize := $image.Resize "1024x webp q80" }}
|
{{ $tiny := $image.Resize "500x webp q80" }}
|
||||||
|
{{ $small := $image.Resize "800x webp q80" }}
|
||||||
|
{{ $medium := $image.Resize "1200x webp q80" }}
|
||||||
|
{{ $large := $image.Resize "1500x webp q80" }}
|
||||||
|
|
||||||
<div class="flex justify-center">
|
{{ $classes := ""}}
|
||||||
|
{{ if gt $image.Height $image.Width }}
|
||||||
|
{{ $classes = "mx-12 md:mx-32"}}
|
||||||
|
{{ else }}
|
||||||
|
{{ $classes = "mx-4 md:mx-12"}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="flex justify-center {{ print $classes }}">
|
||||||
<a href="{{- $image.RelPermalink -}}">
|
<a href="{{- $image.RelPermalink -}}">
|
||||||
<img loading="lazy" src="{{ $image_resize.RelPermalink }}" alt="{{ .Text }}" class="max-h-96">
|
|
||||||
|
<picture>
|
||||||
|
<source media="(max-width: 376px)"
|
||||||
|
srcset="{{ $tiny.RelPermalink }}">
|
||||||
|
<source media="(max-width: 992px)"
|
||||||
|
srcset="{{ $small.RelPermalink }}">
|
||||||
|
<source media="(max-width: 1400px)"
|
||||||
|
srcset="{{ $medium.RelPermalink }}">
|
||||||
|
<source media="(min-width: 1401px)"
|
||||||
|
srcset="{{ $large.RelPermalink }}">
|
||||||
|
<img
|
||||||
|
alt="{{ .Text }}" src="{{ $image.RelPermalink }}"
|
||||||
|
height="{{ $image.Height}}" width="{{ $image.Width }}">
|
||||||
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{- else -}}
|
|
||||||
<img loading="lazy" class="img-fluid" src="{{ .Destination | safeURL }}" {{ with .Text}} alt="{{ . }}" {{ else }} alt="{{ .Page.Title }}" {{ end }} {{ with .Title}} title="{{ . }}"{{ end }} />
|
|
||||||
<p>Fallback</p>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -1,7 +1,17 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $p := where site.RegularPages "Type" "blog" }}
|
{{ $p := where site.RegularPages "Type" "blog" }}
|
||||||
<div class="mx-2 md:mx-0">
|
<div class="mx-2 md:mx-0">
|
||||||
<img src="/img/header.jpg" class="lg:w-full my-4" />
|
<picture class="lg:w-full my-4">
|
||||||
|
<source media="(max-width: 376px)"
|
||||||
|
srcset="/img/header-500.webp">
|
||||||
|
<source media="(max-width: 1400px)"
|
||||||
|
srcset="/img/header-800.webp">
|
||||||
|
<source media="(min-width: 1401px)"
|
||||||
|
srcset="/img/header-1200.webp">
|
||||||
|
<img
|
||||||
|
alt="Ein Bild von einer Insel mit Palmen, dem Meer und dem Himmel" src="/img/header.jpg"
|
||||||
|
height="280px" width="1200px">
|
||||||
|
</picture>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col lg:flex-row px-2 md:px-0">
|
<div class="flex flex-col lg:flex-row px-2 md:px-0">
|
||||||
<div class="basis-1/1 lg:basis-2/3 lg:mr-6 min-h-[200vh] border-2">
|
<div class="basis-1/1 lg:basis-2/3 lg:mr-6 min-h-[200vh] border-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user