blob: 567599fac443871799f0e709093494158fc1572c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{{ $category := .Get 0 }}
{{ $filter := slice $category }}
{{ $more_link := .Get 1 }}
{{ $caption := .Inner }}
<nav class="all-updates">
<h2>{{ $caption }}</h2>
<style>
td {
padding: 5px;
border: 1px groove #000;
}
tr:nth-child(odd) {
}
</style>
<table style="
border: 1px groove #000;
width: 100%;
table-layout: fixed;
">
<thead>
<tr>
<td><b>Title</b></td>
<td style="
width: 50px;
text-align: center;
"
><b>RTG</b></td>
</thead>
<tbody>
{{- range
(where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByTitle }}
<tr>
<td><a href="{{ .Permalink }}">{{ .Title }}</td>
<td style="
width: 50px;
text-align: center;
"
>{{ .Params.Rating}}</td>
</tr>
{{- end }}
</tbody>
</table>
</nav>
|