From 26c20737d66851b25d8feb59c7f7bba9a04c6f3c Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Tue, 11 Jan 2022 00:40:38 +0100 Subject: [PATCH] initial support for video html tag and its attributes.. --- layouts/_default/_markup/render-image.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 38fc03f..d962080 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -9,7 +9,12 @@ {{- $img_params := (substr .Destination 4) -}} {{- $img_src := index (split $img_params " ") 0 -}} {{- $img_attr := index (split $img_params $img_src) 1 -}} - + +{{- else if strings.HasPrefix .Destination "vid:" -}} + {{- $vid_params := (substr .Destination 4) -}} + {{- $vid_src := index (split $vid_params " ") 0 -}} + {{- $vid_attr := index (split $vid_params $vid_src) 1 -}} + {{- else if strings.HasPrefix .Destination "bib:" -}} {{- $destination := (substr .Destination 4) -}} {{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}}