summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-12-02 23:58:55 +0100
committermms <git@sapka.me>2024-12-02 23:58:55 +0100
commit05fa3943852767b848d430eccedbc3b018615229 (patch)
tree68560eda968619003af563ee51d2b00fe507db6c /layouts
parent00c47d0161b9d1cb652b35e3c4466e235c98a3cb (diff)
feat: bookmarks
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/bookmark-month.html4
-rw-r--r--layouts/shortcodes/bookmarks-all.html3
2 files changed, 7 insertions, 0 deletions
diff --git a/layouts/shortcodes/bookmark-month.html b/layouts/shortcodes/bookmark-month.html
index 499f538..480f6e8 100644
--- a/layouts/shortcodes/bookmark-month.html
+++ b/layouts/shortcodes/bookmark-month.html
@@ -12,6 +12,10 @@
<a href="{{ .url }}">{{ .title }}</a>
({{ .host }})
+ {{ if .source_url }}
+ (<a href="{{ .source_url }}">via {{ .source_host }}</a>)
+ {{ end }}
+
{{ end }}
{{ end }}
</ul>
diff --git a/layouts/shortcodes/bookmarks-all.html b/layouts/shortcodes/bookmarks-all.html
index 92a2d55..b1fd562 100644
--- a/layouts/shortcodes/bookmarks-all.html
+++ b/layouts/shortcodes/bookmarks-all.html
@@ -9,6 +9,9 @@
-
<a href="{{ .url }}">{{ .title }}</a>
({{ .host }})
+ {{ if .source_url }}
+ (<a href="{{ .source_url }}">via {{ .source_host }}</a>)
+ {{ end }}
{{ end }}
</ul>