Skip to content

Commit

Permalink
Increase weight of title in pagefind results
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham authored and sftim committed Jul 3, 2024
1 parent 9d2317a commit baeadc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/content-page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if not .page.Params.notitle }}
<h1>{{ .page.Title }}</h1>
<h1 data-pagefind-weight="10">{{ .page.Title }}</h1>
{{ $desc := .page.Description }}
{{ with .page.Params.description }}<div class="lead">{{ $desc | markdownify }}</div>{{ end }}
{{ end }}
Expand Down

0 comments on commit baeadc1

Please sign in to comment.