diff options
author | mms <michal@sapka.me> | 2024-06-19 23:57:19 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-06-19 23:57:19 +0200 |
commit | 80027909eda4a262d1560c0fd499f363f9aaa450 (patch) | |
tree | feed0e67142ae4c137e1d1178b4987f879d7a3d2 /layouts/shortcodes/all-content.html | |
parent | 96bb172f27657498864d68c020ff62d8b1612033 (diff) |
feat(br): table
Diffstat (limited to 'layouts/shortcodes/all-content.html')
-rw-r--r-- | layouts/shortcodes/all-content.html | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/layouts/shortcodes/all-content.html b/layouts/shortcodes/all-content.html index fe160d3..567599f 100644 --- a/layouts/shortcodes/all-content.html +++ b/layouts/shortcodes/all-content.html @@ -5,14 +5,42 @@ <nav class="all-updates"> <h2>{{ $caption }}</h2> - <ul> - {{- range - (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByTitle }} - - <li><a href="{{ .Permalink }}">{{ .Title }}</a> - {{- end }} - + <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 }} - </ul> - + <tr> + <td><a href="{{ .Permalink }}">{{ .Title }}</td> + <td style=" + width: 50px; + text-align: center; + " + >{{ .Params.Rating}}</td> + </tr> + {{- end }} + </tbody> +</table> </nav> |