mirror of
https://github.com/adulau/mastodon-markdown-archive.git
synced 2024-10-09 15:51:44 +00:00
5af659241f
* Extend Mastodon structs * Make threading optional * Include tags in default template * Add function to get all tags * Update spacing in template * Update default template front-matter
36 lines
702 B
Cheetah
36 lines
702 B
Cheetah
---
|
|
date: {{ .Post.CreatedAt }}
|
|
{{- if .Post.InReplyToId }}
|
|
in_reply_to: {{ .Post.InReplyToId }}
|
|
{{- end }}
|
|
post_uri: {{ .Post.URI }}
|
|
post_id: {{ .Post.Id }}
|
|
{{- if len .Tags }}
|
|
tags:
|
|
{{- range .Tags }}
|
|
- {{ .Name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if len .Descendants }}
|
|
descendants:
|
|
{{- range .Descendants }}
|
|
- {{ .Id }}
|
|
{{- end }}
|
|
{{- end }}
|
|
---
|
|
{{ .Post.Content | tomd }}
|
|
|
|
{{- range .Post.MediaAttachments }}
|
|
{{ if eq .Type "image" }}
|
|
![{{ .Description }}]({{ .Path }})
|
|
{{ end }}
|
|
{{- end -}}
|
|
|
|
{{- range .Descendants }}
|
|
{{ .Content | tomd -}}
|
|
{{- range .MediaAttachments }}
|
|
{{ if eq .Type "image" }}
|
|
![{{ .Description }}]({{ .Path }})
|
|
{{ end }}
|
|
{{- end -}}
|
|
{{- end -}}
|