summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/bookmark-month.html
blob: 499f538d828e84cb3635bd91d86596aedec5e01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 }}