From f80a312e17f3486587b8e644a4f0f66f946672de Mon Sep 17 00:00:00 2001
From: Robert Kaussow
Date: Tue, 9 Oct 2018 17:07:43 +0200
Subject: [PATCH] add atom feed
---
layouts/_default/baseof.html | 8 ++++----
layouts/_default/list.atom.xml | 23 +++++++++++++++++++++++
layouts/partials/footer.html | 13 ++++++++-----
layouts/partials/head.html | 5 ++++-
layouts/partials/header.html | 0
theme.toml | 6 ------
6 files changed, 39 insertions(+), 16 deletions(-)
create mode 100644 layouts/_default/list.atom.xml
delete mode 100644 layouts/partials/header.html
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 4658353..faf208e 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -16,16 +16,16 @@
Menu
-
+
-
-
+
+
{{ block "main" . }}{{ end }}
{{- partial "footer.html" . -}}
-
+
diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml
new file mode 100644
index 0000000..1ef68e1
--- /dev/null
+++ b/layouts/_default/list.atom.xml
@@ -0,0 +1,23 @@
+
+ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}
+
+ {{ if not .Date.IsZero }}
+ {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ end }}
+ {{ .Permalink }}{{ with .Site.Author.name }}
+
+ {{.}}{{ with $.Site.Author.email }}
+ {{.}}{{end}}
+ {{end}}
+ Hugo -- gohugo.io{{ range .Data.Pages }}
+
+ {{ `
+
+ {{ .Permalink }}{{ with .Site.Params.Author }}
+
+ {{.}}
+ {{end}}
+ {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}
+ {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}
+ {{ `
+ {{ end }}
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c65d5c1..c48d0c1 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,12 +1,15 @@
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d103d4f..7bf26bc 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,3 +1,6 @@
-
+
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
deleted file mode 100644
index e69de29..0000000
diff --git a/theme.toml b/theme.toml
index 3b46f39..cd00354 100644
--- a/theme.toml
+++ b/theme.toml
@@ -13,9 +13,3 @@ min_version = "0.41"
[author]
name = ""
homepage = ""
-
-# If porting an existing theme
-[original]
- name = ""
- homepage = ""
- repo = ""