Skip to content

Commit

Permalink
🎨 优化页面
Browse files Browse the repository at this point in the history
  • Loading branch information
TAKETODAY committed Apr 13, 2024
1 parent 1c5f5ac commit baca7ca
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/partials/article-latest.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</td>
<td class="content">
<div class="paragraph">
<p>{{#if page.componentVersion.prerelease}}This version is still in development and is not considered stable yet.{{/if}}{{#else}}There is a newer version available.{{/else}} For the latest stable version, please use <a href="{{{relativize ./page.latest.url}}}">{{page.component.title}} {{page.latest.displayVersion}}</a>!</p>
<p>{{#if page.componentVersion.prerelease}}该版本还在开发,不是很稳定.{{/if}}{{#else}}这里已经有新的版本可用.{{/else}} 想用最新版本, 请使用 <a href="{{{relativize ./page.latest.url}}}">{{page.component.title}} {{page.latest.displayVersion}}</a>!</p>
</div>
</td>
</tr></tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/partials/article-search.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="page-search">
<div class="search-wrap">

<h1 id="page-title" class="page">Search</h1>
<h1 id="page-title" class="page">搜索</h1>
<div class="page-box-sticky">
<div id="page-searchbox"></div>
<div class="page-info">
Expand Down
2 changes: 1 addition & 1 deletion src/partials/article-today-projects.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div class="page-today-projects">
<div class="container">
<h1 id="page-title" class="page">TODAY Projects</h1>
<h1 id="page-title" class="page">TODAY 项目</h1>
<ul class="projects-list">
{{#each (related_projects (undefined) (undefined) (today-projects))}}
{{> related-project this}}
Expand Down
2 changes: 1 addition & 1 deletion src/partials/nav-search.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<svg enable-background="new 0 0 32 32" id="Glyph" version="1.1" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M27.414,24.586l-5.077-5.077C23.386,17.928,24,16.035,24,14c0-5.514-4.486-10-10-10S4,8.486,4,14 s4.486,10,10,10c2.035,0,3.928-0.614,5.509-1.663l5.077,5.077c0.78,0.781,2.048,0.781,2.828,0 C28.195,26.633,28.195,25.367,27.414,24.586z M7,14c0-3.86,3.14-7,7-7s7,3.14,7,7s-3.14,7-7,7S7,17.86,7,14z" id="XMLID_223_"/>
</svg>
<span>Search</span>
<span>搜索</span>
<span class="search-key"></span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/partials/nav-section-summary-tree.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if navigation.length}}
<h2>Section Summary</h2>
<h2>章节摘要</h2>
<ul class="nav-section-summary">
{{#each navigation}}
<li>
Expand Down
2 changes: 1 addition & 1 deletion src/partials/related-projects.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
{{/each}}
</ul>
</li
<li><a href="{{{relativize '/today-projects.html'}}}">All Docs...</a></li>
<li><a href="{{{relativize '/today-projects.html'}}}">所有文档...</a></li>
</ul>
2 changes: 1 addition & 1 deletion src/partials/search.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div id="searchbox"></div>
<div id="counter"></div>
<div class="search-link-box">
<a class="search-link" href="{{{relativize '/search.html'}}}">Search in all Infra Docs</a>
<a class="search-link" href="{{{relativize '/search.html'}}}">搜索文档</a>
</div>
<div class="search-by">
<a target="_blank" rel="noopener noreferrer" href="https://www.algolia.com/" aria-label="Search by Algolia">
Expand Down
10 changes: 5 additions & 5 deletions src/partials/toc.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="sidebar-links">
{{#if (and page.fileUri (not env.CI))}}
<a href="{{page.fileUri}}">
<a href="{{page.fileUri}}" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
Expand All @@ -24,7 +24,7 @@
page.editUrl
(or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private))
)}}
<a href="{{page.editUrl}}">
<a href="{{page.editUrl}}" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
Expand All @@ -37,7 +37,7 @@
</a>
{{/if}}
{{#if page.origin.webUrl}}
<a href="{{page.origin.webUrl}}" title="GitHub">
<a href="{{page.origin.webUrl}}" title="GitHub" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
height="512px"
Expand All @@ -50,11 +50,11 @@
class="st0"
d="M256,32C132.3,32,32,134.8,32,261.7c0,101.5,64.2,187.5,153.2,217.9c11.2,2.1,15.3-5,15.3-11.1 c0-5.5-0.2-19.9-0.3-39.1c-62.3,13.9-75.5-30.8-75.5-30.8c-10.2-26.5-24.9-33.6-24.9-33.6c-20.3-14.3,1.5-14,1.5-14 c22.5,1.6,34.3,23.7,34.3,23.7c20,35.1,52.4,25,65.2,19.1c2-14.8,7.8-25,14.2-30.7c-49.7-5.8-102-25.5-102-113.5 c0-25.1,8.7-45.6,23-61.6c-2.3-5.8-10-29.2,2.2-60.8c0,0,18.8-6.2,61.6,23.5c17.9-5.1,37-7.6,56.1-7.7c19,0.1,38.2,2.6,56.1,7.7 c42.8-29.7,61.5-23.5,61.5-23.5c12.2,31.6,4.5,55,2.2,60.8c14.3,16.1,23,36.6,23,61.6c0,88.2-52.4,107.6-102.3,113.3 c8,7.1,15.2,21.1,15.2,42.5c0,30.7-0.3,55.5-0.3,63c0,6.1,4,13.3,15.4,11C415.9,449.1,480,363.1,480,261.7 C480,134.8,379.7,32,256,32z"
></path></g></svg>
GitHub 地址
GitHub
</a>
{{/if}}
{{#if page.attributes.stackoverflow-url}}
<a href="{{page.attributes.stackoverflow-url}}">
<a href="{{page.attributes.stackoverflow-url}}" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path
d="M290.7 311L95 269.7 86.8 309l195.7 41zm51-87L188.2 95.7l-25.5 30.8 153.5 128.3zm-31.2 39.7L129.2 179l-16.7 36.5L293.7 300zM262 32l-32 24 119.3 160.3 32-24zm20.5 328h-200v39.7h200zm39.7 80H42.7V320h-40v160h359.5V320h-40z"
></path></svg>
Expand Down

0 comments on commit baca7ca

Please sign in to comment.