Show full article in RSS
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -11,5 +11,6 @@
|
|||||||
"other": "off"
|
"other": "off"
|
||||||
},
|
},
|
||||||
"editor.minimap.enabled": false
|
"editor.minimap.enabled": false
|
||||||
}
|
},
|
||||||
|
"frontMatter.panel.openOnSupportedFile": true
|
||||||
}
|
}
|
||||||
@@ -62,5 +62,8 @@
|
|||||||
"frontMatter.taxonomy.categories": [],
|
"frontMatter.taxonomy.categories": [],
|
||||||
"frontMatter.content.autoUpdateDate": true,
|
"frontMatter.content.autoUpdateDate": true,
|
||||||
"frontMatter.dashboard.openOnStart": true,
|
"frontMatter.dashboard.openOnStart": true,
|
||||||
"frontMatter.preview.host": "http://localhost:1313/"
|
"frontMatter.preview.host": "http://localhost:1313/",
|
||||||
|
"frontMatter.website.host": "https://blog.kestrelsnest.social",
|
||||||
|
"frontMatter.framework.startCommand": "hugo server -D -F",
|
||||||
|
"frontMatter.git.enabled": true
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
{{- $pages = $pages | first $limit -}}
|
{{- $pages = $pages | first $limit -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
@@ -32,17 +32,8 @@
|
|||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>
|
<description>{{ .Summary | html }}</description>
|
||||||
{{- $content := .Content -}}
|
<content:encoded>{{ printf "<![CDATA[%s]]>" .Content | safeHTML }}</content:encoded>
|
||||||
{{- if .Params.summary -}}
|
|
||||||
{{- $content = .Params.summary -}}
|
|
||||||
{{- else if .Truncated -}}
|
|
||||||
{{- $content = .Description -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- $content = .Plain | truncate 200 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{ $content | html }}
|
|
||||||
</description>
|
|
||||||
</item>
|
</item>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</channel>
|
</channel>
|
||||||
Reference in New Issue
Block a user