summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-12-02 22:01:13 +0100
committermms <git@sapka.me>2024-12-02 22:01:13 +0100
commit00c47d0161b9d1cb652b35e3c4466e235c98a3cb (patch)
tree3d47a1a4354d8e640162d77c8e6efd6a93a94bf3 /layouts
parent9d4e85ca5a6199d6b8888900ea01b4270c995933 (diff)
link dump
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/bookmark-month.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/shortcodes/bookmark-month.html b/layouts/shortcodes/bookmark-month.html
new file mode 100644
index 0000000..499f538
--- /dev/null
+++ b/layouts/shortcodes/bookmark-month.html
@@ -0,0 +1,20 @@
+{{- $noop := .Inner }}
+{{- $month := .Params.month }}
+{{ with resources.Get "more/bookmarks.yml"}}
+{{ with . | transform.Unmarshal }}
+<p>Here are some cool webpages I've found recently:</p>
+<ul>
+ {{ range (sort .bookmarks ".date" "desc") }}
+ {{ if strings.Contains .date $month }}
+ <li>
+ {{ .date }}
+ -
+ <a href="{{ .url }}">{{ .title }}</a>
+ ({{ .host }})
+
+ {{ end }}
+ {{ end }}
+</ul>
+{{ end }}
+<p>You can find more on <a href="/more/bookmarks">Bookmarks</a></p>
+{{ end }}