First standalone version

This commit is contained in:
Gregory Trolliet 2020-04-28 12:26:34 +02:00
commit 9d22a63950
49 changed files with 1367 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{{ $img := $.Page.Resources.GetMatch (.Get "src")}}
{{ $test := $img.Permalink }}
{{ $name_splitted := split $img.RelPermalink "." }}
{{ $name_base := index $name_splitted 0 }}
<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}>
{{ with .Get "link" }}
<a href="{{ . }}">
{{ end }}
<picture>
<source srcset="{{$img.RelPermalink}}" type="image/jpg">
<img src="{{ $img.RelPermalink }}" alt="{{.Get "alt" }}" />
</picture>
{{ with .Get "link" }}
</a>
{{ end }}
{{ with .Get "title" }}
<figcaption>
<p>{{ . }}</p>
</figcaption>
{{ end }}
</figure>