mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 06:46:29 +01:00
fix(rss): fix self atom:link. (#363)
This commit is contained in:
parent
acef6c143e
commit
36f59a72ee
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@
|
||||||
{{- .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
|
{{- .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
|
||||||
</lastBuildDate>
|
</lastBuildDate>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<atom:link href="{{ .Permalink }}" rel="self" type="application/rss+xml" />
|
{{ with .OutputFormats.Get "RSS" }}
|
||||||
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||||
|
{{ end }}
|
||||||
{{- range where .Site.RegularPages "Type" "posts" | first (.Site.Params.home.rss | default 10) -}}
|
{{- range where .Site.RegularPages "Type" "posts" | first (.Site.Params.home.rss | default 10) -}}
|
||||||
{{- dict "page" . "site" .Site | partial "rss/item.html" -}}
|
{{- dict "page" . "site" .Site | partial "rss/item.html" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue