fix mp3 link
This commit is contained in:
parent
71c1fefe84
commit
032a9bd909
1 changed files with 4 additions and 5 deletions
|
@ -2,13 +2,12 @@
|
|||
<link>{{ .Site.Params.baseURL }}{{ .Permalink | relURL }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}</pubDate>
|
||||
<guid isPermaLink="true">
|
||||
{{- if and (ne .Params.external_mp3 "true") (ne .Params.external_mp3 "yes") -}}
|
||||
{{ .Site.Params.baseURL | string }}
|
||||
{{- if and (ne .Params.external_mp3 "true") (ne .Params.external_mp3 "yes") (ne .Params.external_mp3 "1") -}}
|
||||
{{- .Site.Params.baseURL | string -}}
|
||||
{{- end -}}
|
||||
{{ .Site.Params.mp3HTTPPrefix }}
|
||||
{{ .Params.mp3 | string }}
|
||||
{{- .Site.Params.mp3HTTPPrefix -}}{{- .Params.mp3 | string -}}
|
||||
</guid>
|
||||
<enclosure length="{{ .Params.length | string }}" url="{{ .Site.Params.statsPrefix }}{{- if and (ne .Params.external_mp3 "true") (ne .Params.external_mp3 "yes") -}}{{ .Site.Params.baseURL | string }}{{- end -}}{{ .Params.mp3 | string }}" type="audio/mpeg"/>
|
||||
<enclosure length="{{ .Params.length | string }}" url="{{ .Site.Params.statsPrefix }}{{- if and (ne .Params.external_mp3 "true") (ne .Params.external_mp3 "yes") (ne .Params.external_mp3 "1") -}}{{- .Site.Params.baseURL | string -}}{{- end -}}{{- .Params.mp3 | string -}}" type="audio/mpeg"/>
|
||||
<description>
|
||||
{{ `<![CDATA[` | safeHTML }}
|
||||
{{ .Content | safeHTML | truncate 3900 }}<br /><br />
|
||||
|
|
Loading…
Reference in a new issue