diff --git a/_vendor/github.com/linode/linode-docs-theme/layouts/_default/_markup/render-image.html b/_vendor/github.com/linode/linode-docs-theme/layouts/_default/_markup/render-image.html index f3c1213a4a7..32aa1acc2d8 100644 --- a/_vendor/github.com/linode/linode-docs-theme/layouts/_default/_markup/render-image.html +++ b/_vendor/github.com/linode/linode-docs-theme/layouts/_default/_markup/render-image.html @@ -1,6 +1,6 @@ {{- $url := urls.Parse (.Destination | strings.TrimPrefix "./") -}} {{- $destination := $url.Path -}} -{{- $img := .Page.Resources.GetMatch $destination -}} +{{- $img := .PageInner.Resources.GetMatch $destination -}} {{ if and $img (eq $img.MediaType.SubType "svg") }} {{ partial "components/render-svg.html" (dict "ctx" $ "image" $img "url" $url) }} {{ else }} @@ -27,7 +27,7 @@ {{ end }} {{- end -}} {{- with $img -}} - {{ if not ( $.Page.Scratch.Get (printf "%s-is-used" $img.RelPermalink)) }} + {{ if not ( $.PageInner.Scratch.Get (printf "%s-is-used" $img.RelPermalink)) }} {{/* We could resize/process the images here if needed. */}} {{/* The elements from Markdown are: ![.Text](.Destination ".Title") */}} {{ $imgFull := $img }} diff --git a/_vendor/modules.txt b/_vendor/modules.txt index 683ce22e8bb..d1b94abe7fe 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/linode/linode-docs-theme v0.0.0-20240618214412-23d0d6b33823 +# github.com/linode/linode-docs-theme v0.0.0-20240703153238-82b4e03bea44 # github.com/linode/linode-website-partials v0.0.0-20240516182804-8b13c1f13759 # github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21300.20800 # github.com/gohugoio/hugo-mod-jslibs/turbo/v8 v8.20000.20400 diff --git a/go.mod b/go.mod index ed5eb5a051d..bd36078a426 100644 --- a/go.mod +++ b/go.mod @@ -7,5 +7,5 @@ require ( github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.20300.20000 // indirect github.com/instantpage/instant.page v5.1.1+incompatible // indirect github.com/linode/linode-api-docs/v4 v4.176.0 // indirect - github.com/linode/linode-docs-theme v0.0.0-20240618214412-23d0d6b33823 // indirect + github.com/linode/linode-docs-theme v0.0.0-20240703153238-82b4e03bea44 // indirect ) diff --git a/go.sum b/go.sum index b0b963b58d1..8cefc1d1b67 100644 --- a/go.sum +++ b/go.sum @@ -286,6 +286,8 @@ github.com/linode/linode-docs-theme v0.0.0-20240610162252-dd3795f29d6a h1:63YCTf github.com/linode/linode-docs-theme v0.0.0-20240610162252-dd3795f29d6a/go.mod h1:IHFGag+AZAtmiEdw1tfqB/svFE0NPxENx9XZH9F0VU4= github.com/linode/linode-docs-theme v0.0.0-20240618214412-23d0d6b33823 h1:V7w2OtECiqbNn7Hgok1Om4ebW1qIxEL26XrYVqYLuTw= github.com/linode/linode-docs-theme v0.0.0-20240618214412-23d0d6b33823/go.mod h1:VJUOubAM5Rxfw4hPlBH+vQ5H6il0m3k5ZYn9OViz+Ok= +github.com/linode/linode-docs-theme v0.0.0-20240703153238-82b4e03bea44 h1:k17KXxVg3T2x0sB2YelCYCGCwNk9bJbcbkjP2s2rhVI= +github.com/linode/linode-docs-theme v0.0.0-20240703153238-82b4e03bea44/go.mod h1:VJUOubAM5Rxfw4hPlBH+vQ5H6il0m3k5ZYn9OViz+Ok= github.com/linode/linode-website-partials v0.0.0-20221205205120-b6ea1aaa59fb/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= github.com/linode/linode-website-partials v0.0.0-20221222200538-99862e429110/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= github.com/linode/linode-website-partials v0.0.0-20230201145731-a8703d0a954a/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao=