From 25b12cb600ae04866a089831c9fb4c01d2e53ab4 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Thu, 23 Aug 2018 12:26:03 +1000 Subject: [PATCH] Remove 404s from sitemap --- docs/content/introduction.md | 1 + docs/layouts/sitemap.xml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 docs/layouts/sitemap.xml diff --git a/docs/content/introduction.md b/docs/content/introduction.md index 21c538d0836..2891ceec273 100644 --- a/docs/content/introduction.md +++ b/docs/content/introduction.md @@ -1,6 +1,7 @@ --- linkTitle: Introduction title: Type-safe graphql for golang +description: Generating GraphQL servers in golang with type safety type: homepage date: 2018-03-17T13:06:47+11:00 --- diff --git a/docs/layouts/sitemap.xml b/docs/layouts/sitemap.xml new file mode 100644 index 00000000000..b5a19b0107b --- /dev/null +++ b/docs/layouts/sitemap.xml @@ -0,0 +1,13 @@ + + {{ range .Data.Pages }} + {{ if or .Description (eq .Kind "home") }} + + {{ .Permalink }} + {{ if not .Lastmod.IsZero }}{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }} + {{ with .Sitemap.ChangeFreq }}{{ . }}{{ end }} + {{ if ge .Sitemap.Priority 0.0 }}{{ .Sitemap.Priority }}{{ end }} + + {{ end }} + {{ end }} + +