summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/review-table.html
blob: 446052571101ce35df8868660b2dc57359027563 (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

  <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 ".Section" "intersect" (slice .Section)).ByTitle }}
      
      <tr>
        <td><a href="{{ .Permalink }}">{{ .Title }}</td>
        <td style="
                   width: 50px;
                   text-align: center;
                 "
            >{{ .Params.Rating}}</td>
      </tr>
      {{- end }}
      </tbody>
</table>