You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weekly/templates/weekly.html

37 lines
1.4 KiB

{{ range $k, $items := .Grouped }}
<h3>{{ index $.PostTypes $k }}</h3>
<ul class="{{ $k }}">
{{ range $items }}
{{ $item := . }}
{{ if eq $k "like-of" }}
{{ range .LikeOf }}
<li><a href="{{ . }}">{{ . }}</a></li>
{{ end }}
{{ else if eq $k "repost-of" }}
{{ range .RepostOf }}
<li><a href="{{ . }}">{{ . }}</a></li>
{{ end }}
{{ else if eq $k "bookmark" }}
{{ range .BookmarkOf }}
<li><a href="{{ . }}">{{ $item.Name }}</a></li>
{{ end }}
{{ else if eq $k "in-reply-to" }}
{{ range .InReplyTo }}
<li><a href="{{ . }}">{{ . }}</a></li>
{{ end }}
{{ else if eq $k "article" }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ else }}
{{ if .Checkin }}
<li><a href="{{ .URL }}">Checkin at {{ .Checkin.Name }} in {{ .Checkin.Locality }}
, {{ .Checkin.Region }}</a></li>
{{ else if .Content }}
<li><a href="{{ .URL }}">{{ .Content.Text }}</a></li>
{{ else }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
{{ end }}