Minify HTML content in feed XML
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
{{ range $subpage := $subpages }}
|
||||
{{ if not (.Param "paige.exclude_feeds") }}
|
||||
<entry>
|
||||
{{ $content := .Content }}
|
||||
{{ $content := partial "paige/func-minify.html" (dict "content" .Content) }}
|
||||
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
||||
{{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }}
|
||||
{{ $lastmod := .Lastmod.Format $date }}
|
||||
|
@@ -97,7 +97,7 @@
|
||||
<item>
|
||||
{{ $author := "" }}
|
||||
{{ $authors := partial "paige/func-authors.html" . }}
|
||||
{{ $description := .Content }}
|
||||
{{ $description := partial "paige/func-minify.html" (dict "content" .Content) }}
|
||||
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
||||
{{ $guid := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") (cond (.Params.id | not) .RelPermalink .Params.id) }}
|
||||
{{ $published := .PublishDate.Format $date }}
|
||||
|
Reference in New Issue
Block a user