Skip to content

Commit

Permalink
cats
Browse files Browse the repository at this point in the history
  • Loading branch information
rfs85 authored Sep 13, 2024
1 parent 5987e7d commit 2a01b48
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions themes/hugo-index/layouts/partials/table-list.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
<table class="tableList">
<thead>
<tr>
{{- with site.Params.headers }}
<th>{{.key}}</th>
<th>{{.value}}</th>
{{- end }}
</tr>
</thead>
<tbody id="tableListBody">
{{- range .RegularPages}}
<tr>
<td><a href="{{.Permalink}}">{{ .Title }}</a></td>
<td>
{{- if site.Params.showDescriptioninHome }}
{{ .Description }}
{{- else }}
<ul class="catsList">
{{- range (.GetTerms "categories") }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- end }}
</td>
</tr>
{{- end }}
</tbody>
</table>
<table class="tableList">
<thead>
<tr>
Expand Down

0 comments on commit 2a01b48

Please sign in to comment.