From 0bb075d9c8ea99a6f18d440af6d03c84f17fd23b Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 14 Dec 2024 20:41:08 -0500 Subject: initial commit of site --- layouts/_default/rss.xml | 39 +++++++++++++++++++++++++++++++++++++++ layouts/partials/footer.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 layouts/_default/rss.xml create mode 100644 layouts/partials/footer.html (limited to 'layouts') diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..f5116c6 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,39 @@ + +{{- $pages := where .Site.RegularPages "Section" "posts" -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- $rssFeedDescription := .Site.Params.rssFeedDescription | default "summary" -}} +{{- printf "" | safeHTML }} + + + {{ .Site.Title }} blog + {{ .Permalink }} + Recent content on {{ .Site.Title }}. + Hugo + {{ site.Language.LanguageCode }}{{ 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 $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ if eq $rssFeedDescription "summary"}} + {{ .Summary | html }} + {{ else if (eq $rssFeedDescription "full")}} + {{ .Content | html }} + {{ else }} {{ errorf "Error in RSS feed generation %q" .Path }} + {{ end }} + + {{ end }} + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..ca79fa6 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,34 @@ + + + +{{- if .Site.Params.goToTop -}} + + {{ partial "svgs/arrowUp.svg" (dict "height" 48 "width" 48) . }} + +{{- end -}} -- cgit v1.2.3