diff options
Diffstat (limited to 'layouts/shortcodes/bookmark-month.html')
-rw-r--r-- | layouts/shortcodes/bookmark-month.html | 20 |
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 }} |