Skip to content

Commit 8e7f92c

Browse files
committed
Card: Update list based on new params
1 parent 2432301 commit 8e7f92c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

layouts/_default/list.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@
3232
<img src="/images/icons/{{ .Params.logo | default "NGINX-product-icon.svg" }}">
3333
<div class="list-header-title">
3434
<h1>{{ .Title }}</h1>
35-
{{ if .Description }}
36-
<p>{{ .Description | markdownify }}</p>
35+
{{ if index .Params "nd-subtitle" }}
36+
<p>{{ index .Params "nd-subtitle" | markdownify }}</p>
3737
{{ end }}
3838
</div>
3939
</div>
4040

4141
{{ partial "banner" . }}
42-
43-
{{ $hasCustomContent := .Params.hasCustomContent | default false }}
42+
{{ $hasCustomContent := index .Params "nd-landing-page" | default false }}
4443
{{ if $hasCustomContent }}
4544
{{ .Content }}
4645
{{ else }}

layouts/partials/list-main.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ <h1 class="bd-title">
1111
</p>
1212
{{ end}}
1313
{{ partial "banner" .}}
14-
{{ $hasCustomContent := .Params.hasCustomContent | default false }}
14+
{{ $hasCustomContent := index .Params "nd-landing-page" | default false }}
1515
{{ if $hasCustomContent }}
16-
{{ .Page.Scratch.Set "custom-landing-page-file-name" "custom-landing-page.html" }}
17-
{{ .Page.Scratch.Set "custom-landing-page-context" . }}
1816
{{ .Content }}
1917
{{ else }}
2018
<section data-mf="false">

0 commit comments

Comments
 (0)