diff --git a/layouts/_default/list.atom b/layouts/_default/list.atom new file mode 100644 index 0000000..86ee573 --- /dev/null +++ b/layouts/_default/list.atom @@ -0,0 +1,48 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := $pctx.RegularPages -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + {{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }} + {{ .Description }} + Hugo + + {{ .Site.BaseURL }} + {{ with .Site.Author.name }}{{.}}{{end}} + + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .OutputFormats.Get "Atom" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range $pages }} + + + http://activitystrea.ms/schema/1.0/person + {{ .Site.BaseURL }} + {{ with .Site.Author.name }}{{.}}{{end}} + + http://activitystrea.ms/schema/1.0/article + {{ .Title }} + {{ .Permalink }} + {{ printf `` .Content | safeHTML }} + {{ range .Param "tags" }} + {{ end }} + + + http://activitystrea.ms/schema/1.0/create + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + + {{ end }} + \ No newline at end of file