From 34a0d32dbb49a791c1e068899abc24f8fcf3dc38 Mon Sep 17 00:00:00 2001 From: zzossig Date: Wed, 4 Dec 2019 11:15:00 +0900 Subject: [PATCH] RSS Fixed, site-bio misspelling fixed --- layouts/_default/rss.xml | 41 +++++++++++++++++++++++++ layouts/partials/footer/links-feed.html | 2 +- layouts/partials/sidebar/site-bio.html | 2 +- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 layouts/_default/rss.xml diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..8c99646 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,41 @@ +{{ printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.Language.Lang }} + {{.}}{{end}}{{ with $.Site.Params.email }} + {{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}{{end}}{{ with .Site.Params.email }} + {{.}}{{ with $.Site.Params.myname }} ({{.}}){{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 }} + + {{ if .IsHome }} + {{ range .Site.RegularPages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Params.email }}{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Summary | html }} + + {{ end }} + {{ else }} + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Params.email }}{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Summary | html }} + + {{ end }} + {{ end }} + + \ No newline at end of file diff --git a/layouts/partials/footer/links-feed.html b/layouts/partials/footer/links-feed.html index 7325354..3a36ede 100644 --- a/layouts/partials/footer/links-feed.html +++ b/layouts/partials/footer/links-feed.html @@ -1,5 +1,5 @@ {{ if $.Param "showFeedLinks" }} - + {{ partial "svgs/etc/rss.svg" (dict "width" 32 "height" 32) }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar/site-bio.html b/layouts/partials/sidebar/site-bio.html index 5fc4913..2aaed39 100644 --- a/layouts/partials/sidebar/site-bio.html +++ b/layouts/partials/sidebar/site-bio.html @@ -35,7 +35,7 @@ {{ end }} - {{ if .Site.Params.organization }} + {{ if .Site.Params.location }}
{{ partial "svgs/etc/location.svg" (dict "width" 20 "height" 20) }}