diff --git a/layouts/categories/category.rss.xml b/layouts/categories/category.rss.xml index ad3a37e..e03475f 100644 --- a/layouts/categories/category.rss.xml +++ b/layouts/categories/category.rss.xml @@ -45,9 +45,9 @@ {{- printf "" | safeHTML }} - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} de {{ end }}{{ .Site.Title }}{{ end }} + Contenido en la categoría {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} por {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - {{ if ne .Title .Site.Title }}{{ with .Title }}{{ . }} {{ end }}{{ end }}reciente de {{ .Site.Title }} + Contenido reciente en la categoría {{ if ne .Title .Site.Title }}{{ with .Title }}{{ . }} {{ end }}{{ end }}por {{ .Site.Title }} Hugo {{ hugo.Version }} {{ site.Language.LanguageCode }}{{ with $authorEmail }} {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} diff --git a/layouts/tags/list.html b/layouts/tags/list.html index 08872b9..fc9d03b 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -6,7 +6,7 @@
-

{{ .Title }}

+

{{ .Title }} /rss.xml

{{ with .Content }} diff --git a/layouts/tags/taxonomy.rss.xml b/layouts/tags/taxonomy.rss.xml new file mode 100644 index 0000000..6ef43f8 --- /dev/null +++ b/layouts/tags/taxonomy.rss.xml @@ -0,0 +1,71 @@ +{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- else }} + {{- with site.Author.email }} + {{- $authorEmail = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} + {{- end }} +{{- end }} + +{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- else }} + {{- with site.Author.name }} + {{- $authorName = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} + {{- end }} +{{- end }} + +{{- $pctx := . }} +{{- 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 }} +{{- if ge $limit 1 }} +{{- $pages = $pages | first $limit }} +{{- end }} +{{- printf "" | safeHTML }} + + + Contenido etiquetado como «{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }}» por {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Contenido reciente publicado con la etiqueta «{{ if ne .Title .Site.Title }}{{ with .Title }}{{ . }}{{ end }}{{ end }}» por {{ .Site.Title }} + Hugo {{ hugo.Version }} + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} + {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} + {{ . }}{{ end }}{{ if not .Date.IsZero }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + {{ .Summary | transform.XMLEscape | safeHTML }} + + {{- end }} + +