T11h Include 冒烟测试

#元 #测试 共 264 字 约 1 分钟

T11h 渲染验证。include shortcode 走 readFile | safeHTML,把项目根相对路径下的文件内容当 HTML 直接插入。fixture 在 assets/snippets/hello.html — 一段标题 / 列表 / 链接的 HTML 片段。

1. include 一个 HTML 片段

下面这一块是被 include 进来的 HTML:

Inkstone include fixture

This block was loaded from assets/snippets/hello.html via the include shortcode.

  • Heading rendered as <h3>
  • Inline code rendered as <code>
  • External anchor: example.com

自检清单

  • 上方区块以 HTML 形式渲染,不是源码(没有可见的 <section> 标签字符)
  • 标题 “Inkstone include fixture” 用 <h3> 渲染
  • 列表三项都呈 <li>,里面的 <code> 走站点 inline-code 样式
  • 末项的链接(“example.com”)是真链接(鼠标悬停状态有 target="_blank"
  • Hugo 构建无 readFile 错误