Skip to content

Commit 8958fce

Browse files
authored
IndexPages: Add default index page cards (#353)
1 parent 2a4a416 commit 8958fce

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

layouts/_default/list.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,26 @@ <h1>{{ .Title }}</h1>
2424
{{ $hasCustomContent := index .Params "nd-landing-page" | default false }}
2525
{{ if $hasCustomContent }}
2626
{{ .Content }}
27+
28+
<!-- Default index page content -->
2729
{{ else }}
30+
31+
<h2> In this section </h2>
32+
<div class="card-section featured-section">
33+
<div class="card-section-content card-grid">
2834
{{ range .Pages.ByWeight }}
29-
<h2>
30-
<a href="{{ .Permalink }}">{{ .Title }}</a>
31-
</h2>
35+
<a href="{{ .Permalink }}" alt="{{ .Title }}" class="card" data-grid="first-two-thirds">
36+
<div class="card-container">
37+
<div class="card-header">
38+
<h2 class="card-title">{{ .Title }}</h2>
39+
</div>
40+
<div class="card-content">{{ .Description }}</div>
41+
</div>
42+
</a>
3243
{{ end }}
44+
</div>
45+
</div>
46+
3347
{{ end }}
3448

3549
<hr>

0 commit comments

Comments
 (0)