diff options
Diffstat (limited to 'layouts/reviews/list.html')
-rw-r--r-- | layouts/reviews/list.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/layouts/reviews/list.html b/layouts/reviews/list.html new file mode 100644 index 0000000..b5a9643 --- /dev/null +++ b/layouts/reviews/list.html @@ -0,0 +1,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 }} |