refactor: 完成Handlebars模板组件化
This commit is contained in:
@@ -72,7 +72,11 @@
|
||||
<div class="section-title">
|
||||
<i class="fas fa-link"></i>
|
||||
</div>
|
||||
{{#if social}}
|
||||
{{> social-links social}}
|
||||
{{else}}
|
||||
{{{socialLinks}}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -92,21 +96,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{{body}}}
|
||||
|
||||
<!-- 搜索结果页 -->
|
||||
<div class="page" id="search-results">
|
||||
<div class="welcome-section">
|
||||
<h2>搜索结果</h2>
|
||||
<p class="subtitle">在所有页面中找到的匹配项</p>
|
||||
</div>
|
||||
{{#each navigation}}
|
||||
<section class="category search-section" data-section="{{id}}" style="display: none;">
|
||||
<h2><i class="{{icon}}"></i> {{name}}匹配项</h2>
|
||||
<div class="sites-grid"></div>
|
||||
</section>
|
||||
{{/each}}
|
||||
<!-- 页面容器 -->
|
||||
{{#each pages}}
|
||||
<div class="page {{@key}}{{#if @first}} active{{/if}}" id="{{@key}}">
|
||||
{{{this}}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</main>
|
||||
|
||||
<!-- 主题切换按钮 -->
|
||||
|
||||
Reference in New Issue
Block a user