site: fix "latest" engine api sidebar link

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-09-17 11:58:25 +02:00
parent 2db16747db
commit ba32f0719b
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
--- ---
build: build:
render: never render: never
title: Latest (v{{< param latest_engine_api_version >}}) title: Latest
params: params:
sidebar: sidebar:
goto: "/reference/api/engine/version/v{{< param latest_engine_api_version >}}" goto: /reference/api/engine/latest/
weight: 20 weight: 20
--- ---

View File

@ -62,10 +62,10 @@
{{ end }} {{ end }}
{{ define "renderSingle" }} {{ define "renderSingle" }}
{{- if .Params.goto }} {{- if .Params.sidebar.goto }}
<li class="px-4 hover:text-blue-light hover:dark:text-blue-dark"> <li class="px-4 hover:text-blue-light hover:dark:text-blue-dark">
<a class="py-2 w-full truncate block" <a class="py-2 w-full truncate block"
href="{{ .Params.goto }}" href="{{ .Params.sidebar.goto }}"
title="{{ .LinkTitle }}"> title="{{ .LinkTitle }}">
{{ template "renderTitle" . }} {{ template "renderTitle" . }}
</a> </a>