This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch ui-optimization in repository https://gitbox.apache.org/repos/asf/answer.git
commit 568f1e9f48747eb7d9515e8b7c019dc176f17feb Author: shuai <[email protected]> AuthorDate: Mon Apr 7 10:51:19 2025 +0800 fix: update seo template for questions page --- ui/template/footer.html | 4 ++-- ui/template/question.html | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ui/template/footer.html b/ui/template/footer.html index d9c69017..a72db38c 100644 --- a/ui/template/footer.html +++ b/ui/template/footer.html @@ -22,10 +22,10 @@ </div> <footer class="py-3 bg-light w-100"> <p class="text-center mb-0 small"> - <a class="me-3" href="/tos" data-discover="true"> + <a class="me-3" href="{{$.baseURL}}/tos" data-discover="true"> {{translator $.language "ui.admin.legal.terms_of_service.label"}} </a> - <a href="/privacy" data-discover="true"> + <a href="{{$.baseURL}}/privacy" data-discover="true"> {{translator $.language "ui.admin.legal.privacy_policy.label"}} </a> </p> diff --git a/ui/template/question.html b/ui/template/question.html index 1fa19dcf..6d7be332 100644 --- a/ui/template/question.html +++ b/ui/template/question.html @@ -31,7 +31,7 @@ </div> <div class="rounded-0 list-group"> {{range .data}} - <div class="py-3 px-2 border-start-0 border-end-0 position-relative pointer list-group-item list-group-item-action"> + <li class="py-3 px-2 border-start-0 border-end-0 position-relative pointer list-group-item list-group-item-action"> <div class="d-flex flex-wrap text-secondary small mb-12"> <div class="d-flex align-items-center text-secondary me-1"> <a href="{{$.baseURL}}/users/{{.Operator.Username}}"> @@ -84,20 +84,23 @@ <div class="small text-secondary"> <div class="d-flex align-items-center mt-2 mt-md-0"> <div class="d-flex align-items-center flex-shrink-0"> - <i class="br bi-hand-thumbs-up-fill"></i> - <em class="fst-normal ms-1">{{.VoteCount}}</em> + <i class="br bi-hand-thumbs-up-fill me-1"></i> + <span class="fw-medium">{{.VoteCount}}</span> + <span class="ms-1">{{translator $.language "ui.counts.votes"}}</span> </div> <div class="d-flex flex-shrink-0 align-items-center ms-3"> - <i class="br bi-chat-square-text-fill"></i> - <em class="fst-normal ms-1">{{.AnswerCount}}</em> + <i class="br bi-chat-square-text-fill me-1"></i> + <span class="fw-medium">{{.AnswerCount}}</span> + <span class="ms-1">{{translator $.language "ui.counts.answers"}}</span> </div> - <span class="summary-stat ms-3"> + <span class="summary-stat ms-3 flex-shrink-0"> <i class="br bi-bar-chart-fill"></i> - <em class="fst-normal ms-1">{{.ViewCount}}</em> + <span class="fw-medium ms-1">{{.ViewCount}}</span> + <span class="ms-1">{{translator $.language "ui.counts.views"}}</span> </span> </div> </div> - </div> + </li> {{end}} </div> <div class="mt-4 mb-2 d-flex justify-content-center">
