mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 20:45:31 -04:00
clean up a bunch of layouts, especially social-images function
also made even more config.toml parameters optional, will help when finally releasing theme
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{- $img := partial "functions/social-images" . -}}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
@@ -8,9 +9,9 @@
|
||||
<managingEditor>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with .Site.Author.email }}
|
||||
<webMaster>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
||||
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}{{ with .Site.Params.defaultImage }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}{{ with .Scratch.Get "authorImage" }}
|
||||
<image>
|
||||
<url>{{ . | absURL }}</url>
|
||||
<url>{{ .Permalink }}</url>
|
||||
<title>{{ $.Site.Title }}</title>
|
||||
<link>{{ $.Permalink }}</link>
|
||||
</image>{{ end }}{{ with .OutputFormats.Get "RSS" }}
|
||||
|
Reference in New Issue
Block a user