Skip to content

Commit

Permalink
feat: make the description stand out if present
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 4, 2023
1 parent 6104da3 commit f6b39b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ <h1 class="mb-3">{{ .Title }}</h1>
<div class="hb-blog-post-meta hb-docs-doc-meta mb-3">
{{- partial "hb/modules/docs/doc/meta" . }}
</div>
{{- with .Description }}
<p class="lead">{{ . }}</p>
{{- end }}
</div>
<div class="hb-docs-doc-toc ps-lg-3 text-body-secondary">
{{ partial "hb/modules/docs/toc" . }}
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/hb/modules/docs/section.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<h1 class="hb-docs-doc-title mb-3">{{ .Title }}</h1>
{{- with .Description }}
<p class="lead">{{ . }}</p>
{{- end }}
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-doc-content-begin") }}
<div class="hb-docs-doc-content mb-5">
{{ .Content }}
Expand Down

0 comments on commit f6b39b5

Please sign in to comment.