File tree Expand file tree Collapse file tree 2 files changed +2
-62
lines changed Expand file tree Collapse file tree 2 files changed +2
-62
lines changed Original file line number Diff line number Diff line change 35
35
{{ else -}}
36
36
{{- $images := .Resources.ByType "image" -}}
37
37
{{- $featured := $images.GetMatch "*feature*" -}}
38
- {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
38
+ {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*,*logo* }" }}{{ end -}}
39
39
{{- with $featured -}}
40
40
<enclosure url =" {{ $featured.Permalink }}" type =" image/jpg" ></enclosure >
41
41
{{- else -}}
48
48
<pubDate >{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate >
49
49
{{ with .Site.Author.email }}<author >{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author >{{end}}
50
50
<guid >{{ .Permalink }}</guid >
51
- {{- $content := replaceRE "a href=\"(#.*?)\"" (printf "%s%s%s" "a href=\"" .Permalink "$1\"") .Content -}}
52
- {{- $content = replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") $content -}}
53
- <description >{{ $content | html }}</description >
51
+ <description >{{ .Content | html }}</description >
54
52
</item >
55
53
{{ end }}
56
54
</channel >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments