jlelse
/
Indiego
Archived
1
Fork 0
This commit is contained in:
Jan-Lukas Else 2020-06-23 20:46:44 +02:00
parent 2239776e49
commit cb2822333a
6 changed files with 4 additions and 6 deletions

View File

@ -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>

View File

@ -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 }},

View File

@ -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>

View File

@ -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 }}

View File

@ -1 +0,0 @@
{{ (( htmlUnescape .Content | safeHTML ) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | jsonify }}

View File

@ -1 +0,0 @@
{{ (( htmlUnescape .Content | safeHTML ) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | html }}