feat(templates):新增 Markdown 内容页支持
新增 template: content:构建期使用 markdown-it 将本地Markdown 渲染为 HTML(禁用 raw HTML/图片),并按MeNav的URLscheme白名单策略对链接做安全降级
This commit is contained in:
8
templates/pages/content.hbs
Normal file
8
templates/pages/content.hbs
Normal 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>
|
||||
Reference in New Issue
Block a user