diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 00000000..aa33418d --- /dev/null +++ b/static/_redirects @@ -0,0 +1 @@ +/* /404.html 404 diff --git a/static/rss.xsl b/static/rss.xsl new file mode 100644 index 00000000..bacb1011 --- /dev/null +++ b/static/rss.xsl @@ -0,0 +1,96 @@ + + + + + + + <xsl:value-of select="/rss/channel/title"/> RSS Feed + + + + + + + + +
+
+
+

RSS Feed

+

+ +

+

+ +

+ + + + + Visit Website → + +
+
+

Recent Posts

+ + + +
+
+
+ + +
+
\ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/_default/rss.xml b/themes/hello-friend-ng/layouts/_default/rss.xml index 0cbd8710..9ca47ea5 100644 --- a/themes/hello-friend-ng/layouts/_default/rss.xml +++ b/themes/hello-friend-ng/layouts/_default/rss.xml @@ -1,5 +1,5 @@ {{- $pctx := . -}} -{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- if .IsHome -}}{{ $pctx = index .Site.Sections 0 }}{{- end -}} {{- $pages := slice -}} {{- if or $.IsHome $.IsSection -}} {{- $pages = $pctx.RegularPages -}} @@ -11,7 +11,8 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - +{{- printf "" | safeHTML }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} @@ -33,7 +34,8 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ .Content | html }} + {{ .Summary }} + {{ .Content | html}} {{ end }}