mirror of https://github.com/docker/docs.git
feat: add image border as query param
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
2b3e2cb8d5
commit
26ee37b52a
|
@ -6,6 +6,7 @@
|
||||||
{{ $params := (urls.Parse $imagePath).Query }}
|
{{ $params := (urls.Parse $imagePath).Query }}
|
||||||
{{ $width := index $params "w" }}
|
{{ $width := index $params "w" }}
|
||||||
{{ $height := index $params "h" }}
|
{{ $height := index $params "h" }}
|
||||||
|
{{ $border := index $params "border" }}
|
||||||
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -23,7 +24,7 @@
|
||||||
height="{{ index . 0 }}"
|
height="{{ index . 0 }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Title }}title="{{ . }}"{{ end }}
|
{{ with .Title }}title="{{ . }}"{{ end }}
|
||||||
class="rounded mx-auto"
|
class="rounded mx-auto{{ with $border }} border border-divider-light dark:border-divider-dark{{end}}"
|
||||||
/>
|
/>
|
||||||
<template x-teleport="body">
|
<template x-teleport="body">
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in New Issue