mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 11:25:26 +01:00 
			
		
		
		
	replace .Site with site & fix whitespace
This commit is contained in:
		| @@ -31,23 +31,23 @@ | ||||
| {{- end }} | ||||
|  | ||||
| {{- $pctx := . }} | ||||
| {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} | ||||
| {{- if .IsHome }}{{ $pctx = site }}{{ end }} | ||||
| {{- $pages := slice }} | ||||
| {{- if or $.IsHome $.IsSection }} | ||||
| {{- $pages = $pctx.RegularPages }} | ||||
| {{- else }} | ||||
| {{- $pages = $pctx.Pages }} | ||||
| {{- end }} | ||||
| {{- $limit := .Site.Config.Services.RSS.Limit }} | ||||
| {{- $limit := site.Config.Services.RSS.Limit }} | ||||
| {{- if ge $limit 1 }} | ||||
| {{- $pages = $pages | first $limit }} | ||||
| {{- end }} | ||||
| {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} | ||||
| <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||||
|   <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> | ||||
|     <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description> | ||||
|     <description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ site.Title }}</description> | ||||
|     {{- with site.Params.images }} | ||||
|     <image> | ||||
|       <title>{{ site.Title }}</title> | ||||
| @@ -58,7 +58,7 @@ | ||||
|     <generator>Hugo -- gohugo.io</generator> | ||||
|     <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }} | ||||
|     <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} | ||||
|     <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }} | ||||
|     <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with site.Copyright }} | ||||
|     <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} | ||||
|     <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} | ||||
|     {{- with .OutputFormats.Get "RSS" }} | ||||
| @@ -78,6 +78,6 @@ | ||||
|       {{- end }} | ||||
|     </item> | ||||
|     {{- end }} | ||||
|     {{ end }} | ||||
|     {{- end }} | ||||
|   </channel> | ||||
| </rss> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange