From 6eb5e45afa7655b214b04457888655a2036b7198 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 2 Oct 2021 16:59:36 -0400 Subject: [PATCH] site: Remove support for site URLs --- docs/kiln.1.scd | 7 ------- site.go | 1 - templates/_default/atom.xml | 9 +++------ 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/docs/kiln.1.scd b/docs/kiln.1.scd index fd94f9c..65b19cf 100644 --- a/docs/kiln.1.scd +++ b/docs/kiln.1.scd @@ -177,14 +177,9 @@ The following keys are supported: :[ *Description* | title : Site title -| urls -: A list of site URLs | params : Extra parameters made available to templates -Site URLs may contain paths, but should not end with a trailing slash. Multiple -site URLs may be specified for sites that are available at multiple locations. - ## PERMALINKS Permalinks can be used to rewrite page paths. Permalinks are specified in the @@ -633,8 +628,6 @@ Site metadata contains the following data: :[ *Description* | Title : The title of the site. -| URLs -: The URLs of the site. | Params : Extra parameters specified in configuration. | Generated diff --git a/site.go b/site.go index 653c3d8..708f393 100644 --- a/site.go +++ b/site.go @@ -12,7 +12,6 @@ import ( // Site represents a site. type Site struct { Title string `toml:"title"` - URLs []string `toml:"urls"` Tasks []*Task `toml:"tasks"` Params map[string]string `toml:"params"` Permalinks map[string]string `toml:"permalinks"` diff --git a/templates/_default/atom.xml b/templates/_default/atom.xml index b4f005b..8096862 100644 --- a/templates/_default/atom.xml +++ b/templates/_default/atom.xml @@ -1,17 +1,14 @@ {{ `` | safeHTML }} -{{ index site.URLs 0 }}{{ .Permalink }} +{{ .Permalink }} {{ .Title }} {{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }} - + {{ range .Pages }} - {{ index site.URLs 0 }}{{ .Permalink }} + {{ .Permalink }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05Z07:00" }} {{- $permalink := .Permalink }} - {{- range site.URLs }} - - {{- end }} {{ end -}}