From 720ed0046d13092b0f62bb3ab046f526ad2b1dae Mon Sep 17 00:00:00 2001
From: Lam Nguyen
+ {{ .Description | markdownify }}
+
+
{{ .Content | markdownify }}
{{ $type | humanize | title }}
+ {{ if .description }}{{ .description | markdownify }}{{ end }}
+ {{ .Title }}
{{ .Content }}
+ {{- with .Params.banner -}}
+ {{- if .enabled -}}
+
+ {{- end -}}
+ {{- end -}}
+
{{ if (lt .WordCount 1) }}
{{ range .Pages.ByWeight }}
From 388b669ed13f0b873c97b35006bb9e7442c02b6e Mon Sep 17 00:00:00 2001
From: Lam Nguyen
{{ .Title }}
{{- with .Params.banner -}}
{{- if .enabled -}}
{{- end -}}
{{- end -}}
diff --git a/layouts/partials/list-main.html b/layouts/partials/list-main.html
index 07d56dc..f657c0c 100644
--- a/layouts/partials/list-main.html
+++ b/layouts/partials/list-main.html
@@ -1,43 +1,106 @@
{{ .Title }}
+ {{ if .Description }}
+
-
- {{ .Title }}
-
+
+
+ {{ .Title }}
+
+ {{ if and (eq $PageTitle "F5 NGINX One Console") (eq .Title "How-to guides") }}
+
+ {{ range .Pages }}
+ {{ if eq .Kind "section" }}
+ {{ range .Pages }}
+
+ {{ end }}
+ {{ if and (eq $PageTitle "F5 NGINX One Console") (eq .Title "API")}}
+
+ {{ range .Pages }}
+
+ {{ end }}
+ {{ if and (eq $PageTitle "F5 NGINX One Console") (eq .Title "Changelog") }}
+ {{ partial "changelog-date.html" . }}
+ {{ end }}
+ Other Products
+ {{ $nginxProducts := slice
+ (dict "title" "NGINX Instance Manager" "url" "/nginx-instance-manager" "imgSrc" "NGINX-Instance-Manager-product-icon" "type" "local-console-option" "description" "Track and control NGINX Open Source and NGINX Plus instances.")
+ (dict "title" "NGINX Ingress Controller" "url" "/nginx-ingress-controller" "imgSrc" "NGINX-Ingress-Controller-product-icon" "type" "kubernetes-solutions" "description" "Kubernetes traffic management with API gateway, identity, and observability features.")
+ (dict "title" "NGINX Gateway Fabric" "url" "/nginx-gateway-fabric" "imgSrc" "NGINX-product-icon" "type" "kubernetes-solutions" "description" "Next generation Kubernetes connectivity using the Gateway API.")
+ (dict "title" "NGINX App Protect WAF" "url" "/nginx-app-protect-waf" "imgSrc" "NGINX-App-Protect-WAF-product-icon" "type" "security" "description" "Lightweight, high-performance, advanced protection against Layer 7 attacks on your apps and APIs.")
+ (dict "title" "NGINX App Protect DoS" "url" "/nginx-app-protect-dos" "imgSrc" "NGINX-App-Protect-DoS-product-icon" "type" "security" "description" "Defend, adapt, and mitigate against Layer 7 denial-of-service attacks on your apps and APIs.")
+ (dict "title" "NGINX Plus" "url" "/nginx" "imgSrc" "NGINX-Plus-product-icon-RGB" "type" "modern-app-delivery" "description" "The all-in-one load balancer, reverse proxy, web server, content cache, and API gateway.")
+ (dict "title" "NGINX Open Source" "url" "https://nginx.org/en/docs/" "imgSrc" "NGINX-product-icon" "type" "modern-app-delivery" "description" "The open source all-in-one load balancer, content cache, and web server")
+ }}
+ {{ $groupedProducts := dict
+ "local-console-option" (where $nginxProducts "type" "local-console-option")
+ "kubernetes-solutions" (where $nginxProducts "type" "kubernetes-solutions")
+ "security" (where $nginxProducts "type" "security")
+ "modern-app-delivery" (where $nginxProducts "type" "modern-app-delivery")
+ }}
+ {{ range $type, $products := $groupedProducts }}
+
+
+
+ {{ .title }}
+
{{ .Title }}
{{- with .Params.banner -}}
{{- if .enabled -}}
+ {{- $bannerPage := site.GetPage .md -}}
{{- end -}}
{{- end -}}
diff --git a/layouts/partials/list-main.html b/layouts/partials/list-main.html
index f657c0c..cf9cd07 100644
--- a/layouts/partials/list-main.html
+++ b/layouts/partials/list-main.html
@@ -20,8 +20,9 @@
{{- with .Params.banner -}}
{{- if .enabled -}}
+ {{- $bannerPage := site.GetPage .md -}}
{{- end -}}
{{- end -}}
diff --git a/layouts/shortcodes/banner.html b/layouts/shortcodes/banner.html
new file mode 100644
index 0000000..75a0f98
--- /dev/null
+++ b/layouts/shortcodes/banner.html
@@ -0,0 +1,7 @@
+{{- $type := .Get 0 | default (.Get "type") | default "" -}}
+{{- $title := .Get 1 | default (.Get "title") | default "" -}}
+
+ {{ $title }}
+
\ No newline at end of file
From ab57124ccae28b10bbdccd922dd4af72630db151 Mon Sep 17 00:00:00 2001
From: Lam Nguyen
+ {{- .Inner | markdownify -}}
+
{{ .Content | markdownify }}
- {{ $title }} -\ No newline at end of file +{{ partial "callout.html" (dict + "class" $type + "title" $title + "icon" "fa-solid fa-triangle-exclamation" + "inline" true + "content" .Inner +) }} \ No newline at end of file
- {{- .Inner | markdownify -}} -