mirror of
https://github.com/andrewgioia/blog.git
synced 2024-12-23 10:39:55 +00:00
18 lines
469 B
HTML
18 lines
469 B
HTML
|
<figure>
|
||
|
<picture>
|
||
|
{{ with .Get "dark" }}
|
||
|
<source
|
||
|
srcset="{{ . }}"
|
||
|
media="(prefers-color-scheme: dark)">
|
||
|
{{ end }}
|
||
|
<img src='{{ .Get "source" }}'
|
||
|
alt='{{ with .Get "alt" }}{{ . }}{{ end }}'
|
||
|
title='{{ with .Get "title" }}{{ . }}{{ end }}'
|
||
|
class="outset">
|
||
|
</picture>
|
||
|
{{ with .Get "caption" }}
|
||
|
<figcaption>
|
||
|
{{ . }}
|
||
|
</figcaption>
|
||
|
{{ end }}
|
||
|
</figure>
|