X-Git-Url: https://git.dujemihanovic.xyz/duje/static/git-favicon.png?a=blobdiff_plain;f=layouts%2Frss.xml;h=b43900f23bb8dbc8fdc8ce907ab0b647b8efff04;hb=8758f3622c22bc267c1e6ea21cb8621d453d0382;hp=18d4ff6bccba38ce804c9fcd520ba8c407a476ef;hpb=5a6aeedd5e4d04ff17477ae9e3373fb4dba971d1;p=dujemihanovic.xyz.git
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 18d4ff6..b43900f 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -1,29 +1,34 @@
-{{- printf "" | safeHTML }}
-
-
- {{ .Site.Title }}
- {{ .Permalink }}
- Recent content on {{ .Site.Title }}
- Hugo -- gohugo.io
- {{ site.Language.LanguageCode }}{{ with .Site.Author.email }}
- {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
- {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
- {{.}}{{end}}{{ if not .Date.IsZero }}
- {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
- {{- with .OutputFormats.Get "RSS" -}}
- {{ printf "" .Permalink .MediaType | safeHTML }}
- {{- end -}}
- {{ with .Site.GetPage "posts/" }}
- {{ range .Pages | first .Site.Config.Services.RSS.Limit }}
- -
- {{ .Title }}
- {{ .Permalink }}
- {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
- {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
- {{ .Permalink }}
- {{ .Content | html }}
-
- {{ end }}
- {{ end }}
-
-
+{{- printf "" | safeHTML }}
+
+ {{ .Site.Title }}
+ {{ .Permalink }}
+ {{ $lastmod := 0 }}
+ {{ range (.Site.GetPage "/posts").Pages }}
+ {{ if gt .Lastmod $lastmod }}
+ {{ $lastmod = .Lastmod }}
+ {{ end }}
+ {{ end }}
+ {{ $lastmod.Format "2006-01-02T15:04:05Z" }}
+
+
+
+ {{ $.Site.Author.name }}
+ {{ $.Site.Author.email }}
+ {{ .Permalink }}
+
+ Hugo
+
+ {{ with $.Site.GetPage "posts/" }}
+ {{ range first .Site.Config.Services.RSS.Limit .Pages }}
+
+ {{ .Permalink }}
+
+ {{ .Title }}
+ {{ .Lastmod.Format "2006-01-02T15:04:05Z" }}
+ {{ .PublishDate.Format "2006-01-02T15:04:05Z" }}
+ {{ .Content | html }}
+ {{ .Summary | html }}
+
+ {{ end }}
+ {{ end }}
+