mirror of https://github.com/docker/docs.git
site: fix "latest" engine api sidebar link
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
2db16747db
commit
ba32f0719b
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
build:
|
||||
render: never
|
||||
title: Latest (v{{< param latest_engine_api_version >}})
|
||||
title: Latest
|
||||
params:
|
||||
sidebar:
|
||||
goto: "/reference/api/engine/version/v{{< param latest_engine_api_version >}}"
|
||||
goto: /reference/api/engine/latest/
|
||||
weight: 20
|
||||
---
|
||||
|
|
|
@ -62,10 +62,10 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "renderSingle" }}
|
||||
{{- if .Params.goto }}
|
||||
{{- if .Params.sidebar.goto }}
|
||||
<li class="px-4 hover:text-blue-light hover:dark:text-blue-dark">
|
||||
<a class="py-2 w-full truncate block"
|
||||
href="{{ .Params.goto }}"
|
||||
href="{{ .Params.sidebar.goto }}"
|
||||
title="{{ .LinkTitle }}">
|
||||
{{ template "renderTitle" . }}
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue