Update
This commit is contained in:
parent
2239776e49
commit
cb2822333a
|
@ -1 +1 @@
|
|||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | markdownify }}</a>
|
||||
<a href="{{ .Destination | absURL | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | markdownify }}</a>
|
|
@ -28,7 +28,7 @@
|
|||
"id": "{{ .Permalink }}",
|
||||
"url": "{{ .Permalink }}",
|
||||
"title": {{ .Title | jsonify }},
|
||||
"content_html": {{ partialCached "cleanedContent.json" . .Permalink }},
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"summary": {{ .Summary | jsonify }},
|
||||
"date_published": {{ dateFormat "2006-01-02T15:04:05-07:00" .Date | jsonify }},
|
||||
"date_modified": {{ dateFormat "2006-01-02T15:04:05-07:00" .Lastmod | jsonify }},
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ partialCached "cleanedContent.xml" . .Permalink }}</description>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<itunes:author>{{ .Site.Author.name }}</itunes:author>
|
||||
<description>{{ .Summary | plainify }}</description>
|
||||
<itunes:summary>{{ .Summary | plainify }}</itunes:summary>
|
||||
{{ "<content:encoded><![CDATA[" | safeHTML }}{{ ( htmlUnescape ( partialCached "cleanedContent.xml" . .Permalink ) ) | safeHTML }}{{"]]></content:encoded>" | safeHTML}}
|
||||
{{ "<content:encoded><![CDATA[" | safeHTML }}{{ ( htmlUnescape ( .Content | html ) ) | safeHTML }}{{"]]></content:encoded>" | safeHTML}}
|
||||
<enclosure url="{{ .Params.audio }}" {{ with .Params.audioSize }}length="{{ . }}"{{ end }} {{ with .Params.audioMime }}type="{{ . }}"{{ end }}/>
|
||||
</item>
|
||||
{{ end }}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{{ (( htmlUnescape .Content | safeHTML ) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | jsonify }}
|
|
@ -1 +0,0 @@
|
|||
{{ (( htmlUnescape .Content | safeHTML ) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | html }}
|
Reference in New Issue