Skip to content

Commit 6f1846e

Browse files
dvdksnclaude
andcommitted
guides: add a restrained Featured section to the landing page
Brings back curated highlights without the noise of the old image-card grid. Featured guides render as a compact row of bordered text cards (title + 2-line summary, no thumbnails) under a small starred "Featured" eyebrow, at the top of the content column. It shows only in the default view (hidden while filtering) and is rendered visible in static markup so it doesn't pop in on load. Curation is simple for marketing: set params.featured: true to include a guide, and weight: N to order them. Seeds a starter trio (GitHub Actions, Docker Compose, Docker Scout) and clears the stale featured flag on ROS 2. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9cda6f9 commit 6f1846e

5 files changed

Lines changed: 29 additions & 1 deletion

File tree

content/guides/docker-compose/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ aliases:
1111
- /guides/docker-compose/common-questions/
1212
- /guides/docker-compose/setup/
1313
- /guides/docker-compose/why/
14+
weight: 2
1415
params:
1516
tags: [cicd]
17+
featured: true
1618
image: images/learning-paths/compose.png
1719
time: 10 minutes
1820
---

content/guides/docker-scout/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ aliases:
2020
- /guides/docker-scout/s3c/
2121
- /guides/docker-scout/sbom/
2222
- /guides/docker-scout/why/
23+
weight: 3
2324
params:
2425
tags: [security]
26+
featured: true
2527
image: images/learning-paths/scout.png
2628
time: 20 minutes
2729
---

content/guides/gha.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ linkTitle: GitHub Actions and Docker
44
summary: |
55
Learn how to automate image build and push with GitHub Actions.
66
keywords: github actions, ci/cd, docker hub, build and push, automation, workflows
7+
weight: 1
78
params:
89
tags: [cicd]
10+
featured: true
911
time: 10 minutes
1012
---
1113

content/guides/ros2/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ params:
1313
tags: [deployment]
1414
time: 30 minutes
1515
image: /images/guides/ros2.jpg
16-
featured: true
16+
featured: false
1717
---
1818

1919

layouts/guides/landing.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,28 @@
117117
class="min-w-0 flex-1"
118118
:class="{ 'guides-flat': filtering() }"
119119
>
120+
<!-- Featured: curated highlights, shown only in the default view -->
121+
{{- $featured := where $.RegularPagesRecursive "Params.featured" true }}
122+
{{- with $featured }}
123+
<div x-show="!filtering()" class="mb-12">
124+
<p class="mb-4 flex items-center gap-1.5 text-xs font-semibold tracking-widest text-gray-400 uppercase dark:text-gray-500">
125+
<span class="icon-svg icon-sm text-blue-500">{{ partialCached "icon" "star" "star" }}</span>
126+
Featured
127+
</p>
128+
<div class="grid gap-4 sm:grid-cols-2 xl:grid-cols-3">
129+
{{- range .ByWeight }}
130+
<a
131+
href="{{ .Permalink }}"
132+
class="group flex flex-col gap-1.5 rounded-lg border border-gray-200 p-4 transition-colors hover:border-blue-300 hover:bg-gray-50 dark:border-gray-800 dark:hover:border-blue-800 dark:hover:bg-gray-900"
133+
>
134+
<span class="font-medium leading-snug text-gray-900 transition-colors group-hover:text-blue-600 dark:text-gray-100 dark:group-hover:text-blue-400">{{ .Title }}</span>
135+
<span class="line-clamp-2 text-sm leading-relaxed text-gray-500 dark:text-gray-400">{{ .Summary }}</span>
136+
</a>
137+
{{- end }}
138+
</div>
139+
</div>
140+
{{- end }}
141+
120142
<!-- Filtering meta bar -->
121143
<div
122144
x-show="filtering()"

0 commit comments

Comments
 (0)