From bc0d1d75ab8e33357a0b8fd97e51f4325da85950 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 29 Apr 2024 21:05:33 +0530 Subject: commit --- layouts/blog/rss.xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 layouts/blog/rss.xml (limited to 'layouts') diff --git a/layouts/blog/rss.xml b/layouts/blog/rss.xml new file mode 100644 index 0000000..6d2da77 --- /dev/null +++ b/layouts/blog/rss.xml @@ -0,0 +1,34 @@ +{{- $pages := .Pages -}} +{{- printf "" | safeHTML }} + + + Hackerman's Blog + {{ .Permalink }} + Recent posts on the Hackerman's Blog + Hugo -- gohugo.io + {{ with .Site.LanguageCode }} + {{.}} + {{end}} + {{ 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 -}} + {{ range .Sections }} + {{ range .RegularPages }} + + {{ .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 }} + + -- cgit v1.2.3