diff options
author | mms <git@sapka.me> | 2024-11-11 21:33:47 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2024-11-11 21:33:47 +0100 |
commit | 71e48e43cefa0b2830b8f167f5ca5d0a6dad738e (patch) | |
tree | c41fdcfacadf5278576711a5459fbff25cb38f83 /layouts/shortcodes | |
parent | 1436e6b4da3586f63220ba340e0e8b838385aaa4 (diff) |
feat: book reviews
Diffstat (limited to 'layouts/shortcodes')
l--------- | layouts/shortcodes/.#review-table.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/review-table.html | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/layouts/shortcodes/.#review-table.html b/layouts/shortcodes/.#review-table.html new file mode 120000 index 0000000..8a2a5d0 --- /dev/null +++ b/layouts/shortcodes/.#review-table.html @@ -0,0 +1 @@ +mms@voyager.local.23203:1731088680
\ No newline at end of file diff --git a/layouts/shortcodes/review-table.html b/layouts/shortcodes/review-table.html new file mode 100644 index 0000000..4460525 --- /dev/null +++ b/layouts/shortcodes/review-table.html @@ -0,0 +1,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> |