all repos — homestead @ cde569513cdb91e6f605c4240924d12f7e5d031a

Code for my website

use treefmt-nix to format everything

Alan Pearce
commit

cde569513cdb91e6f605c4240924d12f7e5d031a

parent

bab78381a9c54b809dc76144aa9f773d387bb621

1 file changed, 5 insertions(+), 7 deletions(-)

changed files
M domain/content/builder/template/template.godomain/content/builder/template/template.go
@@ -18,13 +18,11 @@ "github.com/antchfx/xmlquery"
"github.com/antchfx/xpath" ) -var ( - nsMap = map[string]string{ - "xsl": "http://www.w3.org/1999/XSL/Transform", - "atom": "http://www.w3.org/2005/Atom", - "xhtml": "http://www.w3.org/1999/xhtml", - } -) +var nsMap = map[string]string{ + "xsl": "http://www.w3.org/1999/XSL/Transform", + "atom": "http://www.w3.org/2005/Atom", + "xhtml": "http://www.w3.org/1999/xhtml", +} func RenderRobotsTXT(baseURL config.URL, w io.Writer) error { tpl, err := template.ParseFS(templates.Files, "robots.tmpl")