mirror of
https://github.com/adulau/mastodon-markdown-archive.git
synced 2024-11-21 09:27:05 +00:00
Replace alt text newlines in default post template
This commit is contained in:
parent
d18757447e
commit
797ccfcb6d
1 changed files with 4 additions and 4 deletions
|
@ -23,9 +23,9 @@ descendants:
|
|||
{{ range .Post.MediaAttachments }}
|
||||
{{- if eq .Type "image" }}
|
||||
{{- if .Path }}
|
||||
![{{ .Description }}]({{ osBase .Path }})
|
||||
![{{ .Description | replace "\n" "" }}]({{ osBase .Path }})
|
||||
{{- else }}
|
||||
![{{ .Description }}]({{ .URL }})
|
||||
![{{ .Description | replace "\n" "" }}]({{ .URL }})
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
@ -35,9 +35,9 @@ descendants:
|
|||
{{ range .MediaAttachments }}
|
||||
{{- if eq .Type "image" }}
|
||||
{{- if .Path }}
|
||||
![{{ .Description }}]({{ osBase .Path }})
|
||||
![{{ .Description | replace "\n" "" }}]({{ osBase .Path }})
|
||||
{{- else }}
|
||||
![{{ .Description }}]({{ .URL }})
|
||||
![{{ .Description | replace "\n" ""}}]({{ .URL }})
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue