From 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 Mon Sep 17 00:00:00 2001 From: eltrac Date: Tue, 7 Apr 2026 14:53:17 +0800 Subject: chore: move templates out of site repo --- layouts/_markup/render-image.html | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 layouts/_markup/render-image.html (limited to 'layouts/_markup/render-image.html') diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html deleted file mode 100644 index 49c9fcee..00000000 --- a/layouts/_markup/render-image.html +++ /dev/null @@ -1,25 +0,0 @@ -{{- $src := .Destination -}} -{{- $alt := .Text | default "" -}} -{{- $caption := .Title | default "" -}} -{{- $class := .Attributes.class | default "" -}} - -{{- if and (not (strings.HasPrefix $src "https://")) (not (strings.HasPrefix $src "http://")) -}} - {{- if not (strings.HasPrefix $src "/") -}} - {{- $src = printf "%s/%s%s" site.Params.assetBaseUrl .Page.File.Dir $src -}} - {{- else -}} - {{- $src = printf "%s%s" site.Params.assetBaseUrl $src -}} - {{- end -}} -{{- end -}} - -
- {{ $alt }} - {{- if $caption }} -
-

{{ $caption | markdownify }}

-
- {{- end }} -
-- cgit v1.2.3