From 173711b364c47c3374c9472f44d426b62c854014 Mon Sep 17 00:00:00 2001 From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com> Date: Mon, 22 Sep 2025 11:47:02 +0100 Subject: [PATCH] Images: Fix images not rendering in preview --- exampleSite/content/_index.md | 7 +++---- exampleSite/content/nginx/installing-nginx-open-source.md | 3 +-- layouts/_default/list.html | 6 +++++- layouts/partials/favicon.html | 2 +- layouts/partials/footer-v2.html | 2 +- layouts/partials/header.html | 2 +- layouts/partials/lucide.html | 6 +++++- layouts/partials/meta.html | 6 +++--- layouts/shortcodes/card.html | 8 +++++--- 9 files changed, 25 insertions(+), 17 deletions(-) diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 9de6003b..4e224d07 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,9 +1,9 @@ --- title: Example Site for NGINX Hugo Theme -description: +description: --- -## NGINX Hugo Theme Documentation +## NGINX Hugo Theme Documentation Documentation for hugo theme {{}} {{}} @@ -12,8 +12,7 @@ Documentation for hugo theme {{}} Test nested product path {{}} - {{}} + {{}} See a live example of theme components {{}} {{}} - diff --git a/exampleSite/content/nginx/installing-nginx-open-source.md b/exampleSite/content/nginx/installing-nginx-open-source.md index 4db5bb66..af3a4a18 100644 --- a/exampleSite/content/nginx/installing-nginx-open-source.md +++ b/exampleSite/content/nginx/installing-nginx-open-source.md @@ -10,8 +10,7 @@ weight: 200 nd-reading-time: true --- -![hero-graphic](/hero-graphic.webp) - +{{hero graphic}} ```nginx # Global Configuration diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 034a7c2d..fe4e9ce2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,11 @@ {{ end }}
- + {{ $logo := .Params.logo | default "NGINX-product-icon.svg"}} + {{ with printf "images/icons/%s" $logo }} + + {{ end }} +

{{ .Title }}

{{ if index .Params "nd-subtitle" }} diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html index 9f807bb3..ea2b200f 100644 --- a/layouts/partials/favicon.html +++ b/layouts/partials/favicon.html @@ -1 +1 @@ - + diff --git a/layouts/partials/footer-v2.html b/layouts/partials/footer-v2.html index baa5c951..79e2a182 100644 --- a/layouts/partials/footer-v2.html +++ b/layouts/partials/footer-v2.html @@ -1,6 +1,6 @@