This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/main by this push:
new 13b6fa21 fix(sitemap): move asf header after xmlheader (#633)
13b6fa21 is described below
commit 13b6fa21572fd989c06be0f0b85e70971a983f38
Author: Lu Fei <[email protected]>
AuthorDate: Wed Nov 22 01:14:20 2023 -0600
fix(sitemap): move asf header after xmlheader (#633)
This fixes #631.
---
script/check-asf-header.sh | 2 +-
ui/template/page.html | 1 -
ui/template/question-detail.html | 1 -
ui/template/sitemap-list.xml | 4 ++--
ui/template/sitemap.xml | 4 ++--
5 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/script/check-asf-header.sh b/script/check-asf-header.sh
index 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.html
index 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.html
index 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.xml
index 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.xml
index 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>