跳过正文

FAQ

查看源码 编辑此页 (外部链接)
首次發表:

VS Code Editor Snippets 此标题的链接

Yore ships two VS Code snippet files that generate shortcode syntax from a short prefix, so you do not have to type parameter names from memory. To install, copy the .code-snippets (外部链接) files into your site's .vscode/ directory.

Description vs. Summary 此标题的链接

description and summary are similar in function: both can be set in front matter, and both convey a short synopsis of the content. The difference is that description is never generated automatically, while summary, if left unset, is auto-generated by Hugo (外部链接).

Yore does not distinguish between the two for metadata purposes. All metadata output is based on description, falling back to summary only when description is not set. In other words, you should always set description rather than relying on summary.

Auto-Generated Summaries Ignore summaryLength 此标题的链接

This happens because Hugo's automatic summary generation preserves paragraph boundaries rather than truncating mid-paragraph. See Automatic summaries do not follow summaryLength (外部链接) for details.

文章关联

无障碍设定

字体大小