Skip to content

Commit

Permalink
Merge pull request #45 from thomasnares/aliasHookSearch
Browse files Browse the repository at this point in the history
Display aliases so they can be matched on search
  • Loading branch information
kpodemski committed Sep 27, 2023
2 parents 3273d2e + 0657831 commit 8f05114
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions layouts/shortcodes/hookList.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<thead>
<tr>
<th>Name</th>
<th>Aliases</th>
<th>Locations</th>
<th>Has example</th>
<th style="display:none">Title</th>
Expand All @@ -12,6 +13,12 @@
{{ range $.Page.Pages }}
<tr>
<td><a href="{{ .RelPermalink }}" class="hookTitle">{{.Title}}</a></td>
<td>
{{ $aliases := .Param "hookAliases" }}
{{ if ne nil $aliases }}
{{ delimit $aliases ", " }}
{{ end }}
</td>
<td>
{{ range .Param "locations" }}
{{ if eq "back office" . }}
Expand All @@ -29,6 +36,7 @@
</td>
<td style="display:none">{{.Param "hookTitle"}}</td>
<td style="display:none">{{.Param "files"}}</td>

</tr>
{{ end }}
</tbody>
Expand Down

0 comments on commit 8f05114

Please sign in to comment.