diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index 5870edc7..4c3ca29f 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -361,6 +361,7 @@ nav { margin-left: 0; padding-left: 0; list-style-type: none; + padding-right: 1.5rem; } .sidebar ul :not(.sidebar-navigation) ul { diff --git a/layouts/partials/sidebar-v2.html b/layouts/partials/sidebar-v2.html index bc4f3c9b..4211e2fb 100644 --- a/layouts/partials/sidebar-v2.html +++ b/layouts/partials/sidebar-v2.html @@ -1,7 +1,28 @@ +{{ $nginxProducts := slice + (dict "title" "NGINX One Console" "url" "/nginx-one" "type" "nginx-one") + (dict "title" "NGINX Plus" "url" "/nginx" "type" "nginx-one") + (dict "title" "NGINX Instance Manager" "url" "/nginx-instance-manager" "type" "nginx-one") + (dict "title" "NGINX Ingress Controller" "url" "/nginx-ingress-controller" "type" "nginx-one") + (dict "title" "NGINX Gateway Fabric" "url" "/nginx-gateway-fabric" "type" "nginx-one") + (dict "title" "NGINX Open Source" "url" "https://nginx.org/en/docs/" "type" "nginx-one") + (dict "title" "NGINX Agent" "url" "/nginx-agent" "type" "nginx-one") + (dict "title" "NGINX App Protect WAF" "url" "/nginx-app-protect-waf" "type" "nginx-app-protect") + (dict "title" "NGINX App Protect DoS" "url" "/nginx-app-protect-dos" "type" "nginx-app-protect") + (dict "title" "NGINX as a Service for Azure" "url" "/nginxaas/azure/" "type" "nginx-as-a-service") + (dict "title" "NGINX Unit" "url" "https://unit.nginx.org/" "type" "nginx-other") +}} +{{ $productMap := dict }} +{{ range $nginxProducts }} + {{ $productId := index (split .url "/") 1 }} + {{ $productMap = merge $productMap (dict $productId .title) }} +{{ end }} +{{ $relPermalink := .RelPermalink }} +{{ $productIdentifier := index ((split $relPermalink "/")) 1 }} +{{ $productName := index $productMap $productIdentifier }}