快轉到主要內容

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.

文章關聯

無障礙設定