diff --git a/exampleSite/data/f5-sites.yaml b/exampleSite/data/f5-sites.yaml new file mode 100644 index 00000000..1c270910 --- /dev/null +++ b/exampleSite/data/f5-sites.yaml @@ -0,0 +1,7 @@ +- title: NGINX Documentation + url: https://docs.nginx.com/ + description: Learn how to deliver, manage, and protect your applications using F5 NGINX products. + +- title: NGINX + url: https://nginx.org/ + description: Learn more about NGINX Open Source and read the community blog diff --git a/layouts/partials/f5-sites.html b/layouts/partials/f5-sites.html new file mode 100644 index 00000000..788fa111 --- /dev/null +++ b/layouts/partials/f5-sites.html @@ -0,0 +1,25 @@ +
+{{ with index .Site.Data "f5-sites" }} +{{ $f5Sites := . }} + +{{ end }} +
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 18f95d68..5294671c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -28,35 +28,8 @@ -
- {{ $f5Sites := slice - (dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community") - (dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions") - (dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog") - }} + {{ partial "f5-sites.html" . }} - - -