feat(templates):新增 Markdown 内容页支持

新增 template: content:构建期使用 markdown-it 将本地Markdown 渲染为 HTML(禁用 raw HTML/图片),并按MeNav的URLscheme白名单策略对链接做安全降级
This commit is contained in:
rbetree
2026-01-20 17:43:06 +08:00
parent f773b9e290
commit 280d376bac
13 changed files with 642 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{{!-- content.hbs - 内容页Markdown -> HTML构建期渲染 --}}
<div class="page-template page-template-{{pageId}} page-template-content">
{{> page-header}}
<article class="content-page" data-content-file="{{contentFile}}">
{{{contentHtml}}}
</article>
</div>