blob: b5a9643fca033d2539b77ba8604b5c53a89ce8e5 (
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
|
{{ define "main" }}
{{ $page := .Page }}
<article>
{{ .Content }}
{{ range .Params.reviewSection}}
<h2>{{ . }}</h2>
<table style=" width: 80%;
table-layout: fixed;
margin: 10px;
">
<thead>
<tr>
<td><b>Title</b></td>
<td style="width: 50px;
text-align: center;
"><b>RTG</b></td>
</thead>
<tbody>
{{- range
(where $page.Site.RegularPages ".Params.reviewSection" "intersect" (slice .)).ByTitle }}
<tr>
<td><a href="{{ .Permalink }}">{{ .Title }}</td>
<td style="
width: 50px;
text-align: center;
"
>{{ .Params.Rating}}</td>
</tr>
{{- end }}
</tbody>
</table>
{{ end }}
</article>
{{ end }}
|