Skip to content

Commit cc4faeb

Browse files
committed
style: show the descriptions/summaries of sub sections
1 parent f6b39b5 commit cc4faeb

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

layouts/partials/hb/modules/docs/section.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1 class="hb-docs-doc-title mb-3">{{ .Title }}</h1>
77
{{ .Content }}
88
{{- if .Pages }}
99
<h2 class="mb-3">{{ i18n "in_this_section" }}</h2>
10-
<ul class="list-unstyled mb-4">
10+
<ul class="list-unstyled mb-5 border-top pt-3">
1111
{{ template "walk-docs-section-tree" . }}
1212
</ul>
1313
{{- end }}
@@ -20,15 +20,21 @@ <h2 class="mb-3">{{ i18n "in_this_section" }}</h2>
2020
{{- $pages := union $weighted (sort .Pages "Title") }}
2121
{{- range $pages }}
2222
{{- if .IsSection }}
23-
<li class="mb-2">
24-
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
25-
<ul class="list-unstyled ps-4 mt-2">
23+
<li class="mb-4">
24+
<a class="fs-5 text-decoration-none" href="{{ .RelPermalink }}">
25+
{{- .Title -}}
26+
</a>
27+
<div class="mt-1">{{- default .Summary .Description -}}</div>
28+
<ul class="list-unstyled ps-4 pt-3 mt-2 border-top">
2629
{{ template "walk-docs-section-tree" . }}
2730
</ul>
2831
</li>
2932
{{- else }}
30-
<li class="mb-2">
31-
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
33+
<li class="mb-4">
34+
<a class="fs-5 text-decoration-none" href="{{ .RelPermalink }}">
35+
{{- .Title -}}
36+
</a>
37+
<div class="mt-1">{{- default .Summary .Description -}}</div>
3238
</li>
3339
{{- end }}
3440
{{- end }}

0 commit comments

Comments
 (0)