diff options
| author | Eltrac <hi@guhub.cn> | 2025-08-23 22:28:06 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-08-23 22:28:06 +0800 |
| commit | 8401c87051386e5cf0a28b7bba6c5be7ced10ce5 (patch) | |
| tree | 64c69d1873c5c58b0382a4ca1e6c629cfd66e721 /layouts/cards/section.html | |
| parent | c4f2f88e17e638ceb3d9c158b37422bc129d8665 (diff) | |
feat: new card section layout
- remove outbox
- smaller font of card summary
- tidier list of cards
Diffstat (limited to 'layouts/cards/section.html')
| -rw-r--r-- | layouts/cards/section.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/layouts/cards/section.html b/layouts/cards/section.html index 17025698..50723c6e 100644 --- a/layouts/cards/section.html +++ b/layouts/cards/section.html @@ -6,19 +6,23 @@ {{- $pages := $cards.Pages }} {{- $featured := first 6 $pages }} {{- $rest := after 6 $pages }} - <div class="grid! md:grid-cols-2 gap-4 outbox small"> + <div class="grid md:grid-cols-2 gap-4 my-4"> {{- range $featured }} - {{ partial "items/card" (dict "context" . "summary" true) }} + {{ partial "items/card" (dict + "context" . + "summary" true + "summaryClass" "text-base!") }} {{- end }} </div> - <ul class="flex gap-4 flex-wrap justify-around list-none text-5"> + <div class="grid grid-cols-3 gap-4 list-none text-lg"> {{- range $rest }} - <li> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - </li> + <a class="border-b-dashed border-b-1 border-b-neutral-300 dark:border-b-neutral-700 + flex items-end py-1 + block text-secondary hover:text-unset hover:no-underline transition" + href="{{ .RelPermalink }}">{{ .Title }}</a> {{- end }} - </ul> + </div> {{ partial "footer.html" . }} </article> |
