initial commit
This commit is contained in:
parent
2012aa8834
commit
9ddfa58ace
2289 changed files with 11217 additions and 0 deletions
10
layouts/_default/_markup/render-image.html
Normal file
10
layouts/_default/_markup/render-image.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
{{ $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) }}
|
||||
{{ if .Title }}
|
||||
<figure>
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" loading="lazy" />
|
||||
<figcaption>{{ .Title }}</figcaption>
|
||||
</figure>
|
||||
{{ else }}
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue