3 changed files with 40 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
--- |
|||
title: "{{ replace .Name "-" " " | title }}" |
|||
date: {{ .Date }} |
|||
description: Summary between 50 and 160 characters |
|||
image: placeholder.png |
|||
tags: |
|||
- relevant |
|||
- tags |
|||
draft: true |
|||
--- |
|||
|
|||
{{< picture image="placeholder.png" alt="Placeholder" >}} |
@ -0,0 +1,9 @@ |
|||
{{ $image := .Get "image"}} |
|||
{{ $type_arr := split $image "." }} |
|||
{{ $srcbase := index $type_arr 0 }} |
|||
|
|||
<picture> |
|||
<source srcset="{{$srcbase}}.webp" type="image/webp"> |
|||
<source srcset="{{$srcbase}}.jp2" type="image/jp2"> |
|||
<img src="{{.Get `image`}}" alt="{{.Get `alt` }}"> |
|||
</picture> |
Loading…
Reference in new issue