A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(sitemap): move asf header after xmlheader (#633)
Lu Fei13b6fa21572f
diff --git a/script/check-asf-header.sh b/script/check-asf-header.shindex dab3b63a..ff765eab 100755--- a/script/check-asf-header.sh+++ b/script/check-asf-header.sh@@ -17,4 +17,4 @@# under the License.docker run -it --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native format-gofmt -w -l .\ No newline at end of file+gofmt -w -l .diff --git a/ui/template/page.html b/ui/template/page.htmlindex 0cf35352..0b18e219 100644--- a/ui/template/page.html+++ b/ui/template/page.html@@ -47,4 +47,3 @@{{ end }}</ul>{{end}}-ㅤdiff --git a/ui/template/question-detail.html b/ui/template/question-detail.htmlindex 1a388dbc..fc276fba 100644--- a/ui/template/question-detail.html+++ b/ui/template/question-detail.html@@ -208,4 +208,3 @@<div class="d-flex justify-content-center"></div></div>{{template "footer" .}}-diff --git a/ui/template/sitemap-list.xml b/ui/template/sitemap-list.xmlindex 3ad0ac99..043812dc 100644--- a/ui/template/sitemap-list.xml+++ b/ui/template/sitemap-list.xml@@ -1,3 +1,4 @@+{{ .xmlHeader }}<!--Licensed to the Apache Software Foundation (ASF) under one@@ -18,11 +19,10 @@under the License.-->-{{ .xmlHeader }}<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">{{ range .page }}<sitemap><loc>{{$.general.SiteUrl}}/sitemap/question-{{.}}.xml</loc></sitemap>- {{ end }}+ {{ end }}</sitemapindex>diff --git a/ui/template/sitemap.xml b/ui/template/sitemap.xmlindex 638ba3b5..2f289cd8 100644--- a/ui/template/sitemap.xml+++ b/ui/template/sitemap.xml@@ -1,3 +1,4 @@+{{ .xmlHeader }}<!--Licensed to the Apache Software Foundation (ASF) under one@@ -18,7 +19,6 @@under the License.-->-{{ .xmlHeader }}<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">{{ range .list }}<url>@@ -29,5 +29,5 @@{{end}}<lastmod>{{.UpdateTime}}</lastmod></url>- {{ end }}+ {{ end }}</urlset>