From 797ccfcb6d75fe6175e2af895be937af28d9f814 Mon Sep 17 00:00:00 2001 From: Gabriel Garrido Date: Sun, 1 Sep 2024 12:09:03 -0600 Subject: [PATCH] Replace alt text newlines in default post template --- files/templates/post.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/templates/post.tmpl b/files/templates/post.tmpl index 93f2592..f64736e 100644 --- a/files/templates/post.tmpl +++ b/files/templates/post.tmpl @@ -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 }}