summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-06-19 23:57:19 +0200
committermms <michal@sapka.me>2024-06-19 23:57:19 +0200
commit80027909eda4a262d1560c0fd499f363f9aaa450 (patch)
treefeed0e67142ae4c137e1d1178b4987f879d7a3d2 /layouts
parent96bb172f27657498864d68c020ff62d8b1612033 (diff)
feat(br): table
Diffstat (limited to 'layouts')
-rw-r--r--layouts/blog/baseof.html4
-rw-r--r--layouts/shortcodes/all-content.html46
2 files changed, 40 insertions, 10 deletions
diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html
index adc72e4..2e2ea5a 100644
--- a/layouts/blog/baseof.html
+++ b/layouts/blog/baseof.html
@@ -7,6 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta property="fediverse:creator" content="@mms@emacs.ch">
+ <link rel="me" href="https://emacs.ch/@mms">
+
{{- $header_rect := resources.Get "blog/logo/right.png" }}
{{- $header_rect_180 := $header_rect.Resize "180x webp q90"}}
<link rel="apple-touch-icon" sizes="180x180" href="{{ $header_rect_180.Permalink }}">
@@ -29,7 +32,6 @@
<link rel='alternate' type='application/rss+xml' title="Feed with all changes" href='/index.xml'>
<link rel='alternate' type='application/rss+xml' title="Feed with Unix History changes" href='/unix-history/index.xml'>
<meta name="robots" content="index, follow">
- <link rel="me" href="https://emacs.ch/@mms">
<link rel="webmention" href="https://webmention.io/d-s.sh/webmention">
<link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc">
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>