diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-08 21:30:23 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-08 21:30:23 +0800 |
| commit | bce6be90883b107285faa56acf0081b54daa3aa9 (patch) | |
| tree | 0893f99b5debe074f1596b6cfc6d3c86da34ca42 /layouts/_default/_markup | |
Initialize personal website
Diffstat (limited to 'layouts/_default/_markup')
| -rw-r--r-- | layouts/_default/_markup/render-image.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..a24e27e --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,5 @@ +{{- $source := .Destination -}} +{{- with .Page.Resources.GetMatch .Destination -}} + {{- $source = .RelPermalink -}} +{{- end -}} +<img src="{{ $source | safeURL }}" alt="{{ .PlainText }}"{{ with .Title }} title="{{ . }}"{{ end }}> |
