Skip to content

Commit ab1c16d

Browse files
committed
LandingPage: Add default landing page cards
1 parent 2a4a416 commit ab1c16d

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

layouts/_default/list.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ <h1>{{ .Title }}</h1>
2424
{{ $hasCustomContent := index .Params "nd-landing-page" | default false }}
2525
{{ if $hasCustomContent }}
2626
{{ .Content }}
27+
28+
<!-- Default landing page content -->
2729
{{ else }}
30+
31+
<div class="card-section featured-section">
32+
<div class="card-section-content card-grid">
2833
{{ range .Pages.ByWeight }}
29-
<h2>
30-
<a href="{{ .Permalink }}">{{ .Title }}</a>
31-
</h2>
34+
<a href="{{ .Permalink }}" alt="{{ .Title }}" class="card" data-grid="half">
35+
<div class="card-container">
36+
<div class="card-header">
37+
<h2 class="card-title">{{ .Title }}</h2>
38+
</div>
39+
<div class="card-content">{{ .Description }}</div>
40+
</div>
41+
</a>
3242
{{ end }}
43+
</div>
44+
</div>
45+
3346
{{ end }}
3447

3548
<hr>

0 commit comments

Comments
 (0)