refactor: 完成Handlebars模板组件化

This commit is contained in:
Zuoling Rong
2025-05-08 01:32:14 +08:00
parent 6474fa3635
commit 9ea6cb1f09
24 changed files with 1440 additions and 598 deletions

View File

@@ -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>
<!-- 主题切换按钮 -->