Skip to content

Commit

Permalink
fix(sitemap): move asf header after xmlheader (#633)
Browse files Browse the repository at this point in the history
This fixes #631.
  • Loading branch information
sy-records authored Nov 22, 2023
1 parent c1cd2bb commit 13b6fa2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion script/check-asf-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# under the License.

docker run -it --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native format
gofmt -w -l .
gofmt -w -l .
1 change: 0 additions & 1 deletion ui/template/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@
{{ end }}
</ul>
{{end}}
1 change: 0 additions & 1 deletion ui/template/question-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,3 @@ <h5 class="mb-0">{{.detail.AnswerCount}} Answers</h5>
<div class="d-flex justify-content-center"></div>
</div>
{{template "footer" .}}

4 changes: 2 additions & 2 deletions ui/template/sitemap-list.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ .xmlHeader }}
<!--
Licensed to the Apache Software Foundation (ASF) under one
Expand All @@ -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>
4 changes: 2 additions & 2 deletions ui/template/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ .xmlHeader }}
<!--
Licensed to the Apache Software Foundation (ASF) under one
Expand All @@ -18,7 +19,6 @@
under the License.
-->
{{ .xmlHeader }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .list }}
<url>
Expand All @@ -29,5 +29,5 @@
{{end}}
<lastmod>{{.UpdateTime}}</lastmod>
</url>
{{ end }}
{{ end }}
</urlset>

0 comments on commit 13b6fa2

Please sign in to comment.