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.md.tmpl

24 lines
785 B

{{ range $k, $items := .Grouped }}
### {{ index $.PostTypes $k }}
{{ range $items -}}
{{- $item := . -}}
{{- if eq $k "like" -}}
{{ range .LikeOf }}* [{{ . }}]({{ . }}){{ end }}
{{ else if eq $k "repost" -}}
{{ range .RepostOf }}* [{{ . }}]({{ . }}){{ end }}
{{ else if eq $k "bookmark" -}}
{{ range .BookmarkOf }}* [{{ $item.Name }}]({{ . }}){{ end }}
{{ else if eq $k "reply" -}}
{{ range .InReplyTo }}* [{{ . }}]({{ . }}){{ end }}
{{ else if eq $k "article" -}}
* [{{ .Name }}]({{ .URL }})
{{ else if .Checkin -}}
* [Checkin at {{ .Checkin.Name }} in {{ .Checkin.Locality }}, {{ .Checkin.Region }}]({{ .URL }})
{{ else if .Content -}}
* {{ .Content.Text }} [link]({{ .URL }})
{{ else -}}
* [{{ .Name }}]({{ .URL }})
{{- end -}}
{{ end -}}
{{ end -}}