summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-24 22:30:39 +0100
committermms <git@sapka.me>2024-11-24 22:31:00 +0100
commitc7f5572beb42c073ee6550816cd9e1f31cfa7092 (patch)
treec3aa312d0c65713d49da4436e22be071612a89ec /layouts
parent95e0330c60e67128950f0b8e135488217a54923b (diff)
feat: bookmarks
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/bookmarks-all.html16
-rw-r--r--layouts/shortcodes/links.html2
2 files changed, 17 insertions, 1 deletions
diff --git a/layouts/shortcodes/bookmarks-all.html b/layouts/shortcodes/bookmarks-all.html
new file mode 100644
index 0000000..92a2d55
--- /dev/null
+++ b/layouts/shortcodes/bookmarks-all.html
@@ -0,0 +1,16 @@
+{{- $caption := .Inner }}
+{{ $lastLetter := "Dupa" }}
+{{ with resources.Get "more/bookmarks.yml"}}
+{{ with . | transform.Unmarshal }}
+<ul>
+ {{ range (sort .bookmarks ".date" "desc") }}
+ <li>
+ {{ .date }}
+ -
+ <a href="{{ .url }}">{{ .title }}</a>
+ ({{ .host }})
+
+ {{ end }}
+</ul>
+{{ end }}
+{{ end }}
diff --git a/layouts/shortcodes/links.html b/layouts/shortcodes/links.html
index 4c87b41..2707af2 100644
--- a/layouts/shortcodes/links.html
+++ b/layouts/shortcodes/links.html
@@ -15,7 +15,7 @@
<tr>
<td colspan="2">
<hr>
- <h2>{{ $letter}}</h2>
+ <h4>{{ $letter}}</h4>
</td>
</tr>
{{ end }}