File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
{{- $pctx := . -}}
2
- {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
3
- {{- $pages := slice -}}
4
- {{- $sectionsToInclude := (slice "blog" "workshops") -}}
5
- {{- $typesToInclude := (slice "student-talks" "hacking-hours") -}}
2
+ {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
3
+ {{- $pages := slice -}}
4
+ {{- $sectionsToInclude := (slice "blog" "workshops") -}}
5
+ {{- $typesToInclude := (slice "student-talks" "hacking-hours") -}}
6
6
7
- {{- range $pctx.RegularPages -}}
7
+ {{- range $pctx.RegularPages -}}
8
8
{{- if and .Date (not .Date.IsZero) (or (in $sectionsToInclude .Section) (in $typesToInclude .Type)) (ne .Params.upcoming true) -}}
9
- {{- $pages = $pages | append . -}}
9
+ {{- $pages = $pages | append . -}}
10
+ {{- end -}}
10
11
{{- end -}}
11
- {{- end -}}
12
12
13
- {{- $limit := .Site.Config.Services.RSS.Limit | default 20 -}}
14
- {{- printf "<?xml version =\" 1.0\" encoding =\" utf-8\" standalone =\" yes\" ?>" | safeHTML }}
13
+ {{- $limit := .Site.Config.Services.RSS.Limit | default 20 -}}
14
+ {{- printf "<?xml version =\" 1.0\" encoding =\" utf-8\" standalone =\" yes\" ?>" | safeHTML }}
15
15
<rss version =" 2.0" xmlns : atom =" http://www.w3.org/2005/Atom" >
16
16
<channel >
17
17
<title >{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title >
31
31
<link >{{ .Permalink }}</link >
32
32
<pubDate >{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate >
33
33
<guid >{{ .Permalink }}</guid >
34
- <description >{{ .Description }} </description >
34
+ <description ><![CDATA[ {{ .Description | plainify }} ]]> </description >
35
35
</item >
36
36
{{- end -}}
37
37
</channel >
You can’t perform that action at this time.
0 commit comments