|
23 | 23 | <section class="container my-2">
|
24 | 24 | <div class="container">
|
25 | 25 | <div class="row">
|
26 |
| - {{- range first 3 $sortedPagesWithData }} |
| 26 | + {{- range $sortedPagesWithData }} |
27 | 27 | <div class="col-xl-4 p-2">
|
28 | 28 | {{- if or (eq .page.Type "tags") (eq .page.Type "categories") }}
|
29 | 29 | {{- partial "page-sections/sections-taxonomies-card.html" (dict "site" .Site "context" .page "subTypes" "resources") }}
|
@@ -59,38 +59,6 @@ <h3 class="ttl-nkdagility h5 text-start" title="{{ $title }}">{{- $title }}</h3>
|
59 | 59 | <h2>Overview of {{ .Title }}</h2>
|
60 | 60 | {{- .Content }}
|
61 | 61 | </div>
|
62 |
| - {{- range after 3 $sortedPagesWithData }} |
63 |
| - <div class="col-xl-4"> |
64 |
| - {{- if or (eq .page.Type "tags") (eq .page.Type "categories") }} |
65 |
| - {{- partial "page-sections/sections-taxonomies-card.html" (dict "site" .Site "context" .page "subTypes" "resources") }} |
66 |
| - {{- else }} |
67 |
| - {{- $title := .page.Title }} |
68 |
| - {{- $description := .page.Description }} |
69 |
| - {{- $buttonContent := "Find out More" }} |
70 |
| - {{- if .page.Params.card }} |
71 |
| - {{- $title = .page.Params.card.title }} |
72 |
| - {{- $description = .page.Params.card.content }} |
73 |
| - {{- $buttonContent = .page.Params.card.button.content }} |
74 |
| - {{- end }} |
75 |
| - <!-- layouts/partials/card.html --> |
76 |
| - <div class="sectioncards p-2 flex-fill flex-grow-1 h-100"> |
77 |
| - <div class="card sectioncards flex-fill flex-grow-1 m-3 shadow text-start small border-0 h-100 position-relative"> |
78 |
| - <div class="card-body p-4 px-20"> |
79 |
| - <span class="badge text-bg-secondary">{{- title .page.Params.ResourceType }}</span> |
80 |
| - <h3 class="ttl-nkdagility h5 text-start" title="{{ $title }}">{{- $title }}</h3> |
81 |
| - <div class="card-text text-muted"> |
82 |
| - {{- $description | markdownify }} |
83 |
| - </div> |
84 |
| - </div> |
85 |
| - <div class="card-footer border-transparent bg-white p-3 border-0 d-flex justify-content-between align-items-center"> |
86 |
| - <small class="text-body-secondary" title="Affinity to {{ $taxonomyName }} is {{ .score }}%"> <strong class="d-inline-block text-truncate" style="max-width: 150px; vertical-align: middle;"> {{ $taxonomyName }} </strong>: {{ .score }}% </small> |
87 |
| - <a href="{{ .page.Permalink }}" class="btn btn-nkdagility p-2" title="More information on {{ .title }}"> {{- $buttonContent }} <i class="fa-solid fa-arrow-right"></i> </a> |
88 |
| - </div> |
89 |
| - </div> |
90 |
| - </div> |
91 |
| - {{- end }} |
92 |
| - </div> |
93 |
| - {{- end }} |
94 | 62 | </div>
|
95 | 63 | </div>
|
96 | 64 | </section>
|
|
0 commit comments