File tree Expand file tree Collapse file tree 9 files changed +25
-17
lines changed Expand file tree Collapse file tree 9 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : Example Site for NGINX Hugo Theme
3
- description :
3
+ description :
4
4
---
5
5
6
- ## NGINX Hugo Theme Documentation
6
+ ## NGINX Hugo Theme Documentation
7
7
Documentation for hugo theme
8
8
{{<card-section >}}
9
9
{{<card title =" Test Product " titleUrl =" /test-product/ " icon =" test-tubes " isLanding =" true " >}}
@@ -12,8 +12,7 @@ Documentation for hugo theme
12
12
{{<card title =" Test Nested Product " titleUrl =" /nested/product " icon =" test-tubes " isLanding =" true " >}}
13
13
Test nested product path
14
14
{{</card >}}
15
- {{<card title =" NGINX Plus " titleUrl =" /nginx/ " brandIcon =" NGINX-Plus-product-icon-RGB .svg " isLanding =" true " >}}
15
+ {{<card title =" NGINX Plus " titleUrl =" /nginx/ " brandIcon =" NGINX-Plus-product-icon.svg " isLanding =" true " >}}
16
16
See a live example of theme components
17
17
{{</card >}}
18
18
{{</card-section >}}
19
-
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ weight: 200
10
10
nd-reading-time : true
11
11
---
12
12
13
- ![ hero-graphic] ( /hero-graphic.webp )
14
-
13
+ {{<img src =" hero-graphic.webp " alt =" hero graphic " >}}
15
14
``` nginx
16
15
17
16
# Global Configuration
Original file line number Diff line number Diff line change 10
10
{{ end }}
11
11
</ div >
12
12
< div class ="list-header-container ">
13
- < img src ="/images/icons/{{ .Params.logo | default "NGINX-product-icon.svg " }}">
13
+ {{ $logo := .Params.logo | default "NGINX-product-icon.svg"}}
14
+ {{ with printf "images/icons/%s" $logo }}
15
+ < img src ="{{. | absURL}} ">
16
+ {{ end }}
17
+
14
18
< div class ="list-header-title ">
15
19
< h1 > {{ .Title }}</ h1 >
16
20
{{ if index .Params "nd-subtitle" }}
Original file line number Diff line number Diff line change 1
- < link rel ="shortcut icon " type ="image/x-icon " href ="{{ "/ images/favicon-48x48.ico" | absURL }}">
1
+ < link rel ="shortcut icon " type ="image/x-icon " href ="{{ "images /favicon-48x48.ico" | absURL }}">
Original file line number Diff line number Diff line change 1
1
< div class ="footer-layout ">
2
2
< div class ="footer-f5-trademark " data-testid ="footer-f5-trademark ">
3
- < img class ="f5-logo-footer " src ="{{ "/ images/icons/Logo_F5.svg" | absURL }}" alt="F5 logo">
3
+ < img class ="f5-logo-footer " src ="{{ "images /icons/Logo_F5.svg" | absURL }}" alt="F5 logo ">
4
4
< p > ©2025 F5, Inc. All rights reserved. NGINX is a registered trademark of F5, Inc.</ p >
5
5
</ div >
6
6
< div class ="footer-useful-links " data-testid ="footer-useful-links ">
Original file line number Diff line number Diff line change 24
24
25
25
< div class ="header__logo " data-testid ="header__logo ">
26
26
< a class ="header__logo-link " href ="{{ .Site.BaseURL | relLangURL }} " alt ="NGINX Docs Home ">
27
- < img class ="header__img " src ="{{ "/ images/icons/NGINX-Open-Source-product-icon.svg" | absURL }}" alt="NGINX Docs">
27
+ < img class ="header__img " src ="{{ "images /icons/NGINX-Open-Source-product-icon.svg" | absURL }}" alt="NGINX Docs ">
28
28
</ a >
29
29
</ div >
30
30
Original file line number Diff line number Diff line change 1
1
{{- /* Usage: */ -}}
2
2
{{- /* (dict "context" . "icon" "circle") */ -}}
3
- < svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " aria-hidden ="true " class ="lucide " style ="{{ .style | safeCSS }} "> < use href ="/images/lucide-sprite.svg#{{ .icon }} "> </ use > </ svg >
3
+ < svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " aria-hidden ="true " class ="lucide " style ="{{ .style | safeCSS }} ">
4
+ {{ with printf "images/lucide-sprite.svg#%s" .icon }}
5
+ < use href ="{{. | absURL}} "> </ use >
6
+ {{ end }}
7
+ </ svg >
Original file line number Diff line number Diff line change 24
24
{{ end }}
25
25
26
26
< meta property ="article:publisher " content ="https://www.facebook.com/nginxinc " />
27
- < meta property ="og:image " content ="{{ "/ images/icons/NGINX-Docs-new-docs-dark-1200x630.png" | absURL }}" />
27
+ < meta property ="og:image " content ="{{ "images /icons/NGINX-Docs-new-docs-dark-1200x630.png" | absURL }}" />
28
28
< meta property ="og:image:width " content ="500 " />
29
29
< meta property ="og:image:height " content ="300 " />
30
30
< meta name ="twitter:card " content ="summary " />
31
31
< meta name ="twitter:description " content ="{{.Page.Description}} " />
32
32
< meta name ="twitter:title " content ="{{.Page.Title}} " />
33
33
< meta name ="twitter:site " content ="@nginx " />
34
- < meta name ="twitter:image " content ="{{ "/ images/icons/NGINX-Docs-new-docs-dark-1200x630.png" | absURL }}" />
34
+ < meta name ="twitter:image " content ="{{ "images /icons/NGINX-Docs-new-docs-dark-1200x630.png" | absURL }}" />
35
35
< meta name ="twitter:creator " content ="@nginx " />
36
36
{{ if .Page.Lastmod }}
37
37
< meta http-equiv ="last-modified " content ="{{ .Page.Lastmod.Format "02 /01/2006" }}" />
66
66
<!-- Coveo metadata-->
67
67
< meta name ="product " content ="{{ .Site.Title }} ">
68
68
< meta name ="version " content ="{{ .Site.Params.currentVersion }} ">
69
- < meta name ="doc_type " content ="Manual ">
69
+ < meta name ="doc_type " content ="Manual ">
Original file line number Diff line number Diff line change 1
1
{{- $title := .Get "title" -}}
2
- {{- $titleUrl := .Get "titleUrl" | default "." -}}
2
+ {{- $titleUrl := .Get "titleUrl" | default "." -}}
3
3
{{- $icon := .Get "icon" | default "book-open" -}}
4
4
{{- $brandIcon := .Get "brandIcon" -}}
5
5
{{- $isFullSizeParam := .Get "isFullSize" | default "false" -}}
41
41
{{- if $title -}}
42
42
< div class ="card-header ">
43
43
{{- if $brandIcon -}}
44
- < img class ="card-brand-icon " src ="/images/icons/{{ $brandIcon }} ">
44
+ {{ with printf "images/icons/%s" $brandIcon }}
45
+ < img class ="card-brand-icon " src ="{{. | absURL}} ">
46
+ {{ end }}
45
47
{{- else if $icon -}}
46
48
{{ partial "lucide" (dict "context" . "icon" $icon) }}
47
49
{{- end -}}
@@ -57,4 +59,4 @@ <h2 class="card-title">{{- $title -}}</h2>
57
59
</ a >
58
60
{{- else -}}
59
61
{{ errorf "The '< card > ' must be nested directly inside the shortcode '< card-section > '. Please see the exampleSite for an example of usage." }}
60
- {{- end -}}
62
+ {{- end -}}
You can’t perform that action at this time.
0 commit comments