summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/bookmarks-all.html
blob: 6b9eb47289822edbddbc7258562eb06263e0ffd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{- $caption := .Inner }}
{{ $lastLetter := "Dupa" }}
{{ $oldDate := "aaa" }}
{{ with resources.Get "more/bookmarks.yml"}}
{{ with . | transform.Unmarshal }}
  {{ range (sort .bookmarks ".date" "desc") }}
      {{ if not (eq $oldDate .date) }}
          {{ if not (eq $oldDate "aaa") }} </ul>{{ end }}
	  <h3>{{ .date }}</h3>  
 	  <ul>
      {{ end }}
      {{ $oldDate = .date }}
    <li><a href="{{ .url }}">{{ .title }}</a>
        ({{ .host }}) 
	{{ if .source_url }}(via <a href="{{ .source_url }}">{{ .source_host }}</a>){{ end }}
  {{ end }}
{{ end }}
{{ end }}