Files
hextra_mirror/exampleSite/content/docs/guide/shortcodes/others.zh-cn.md
Xin ec007d73c0 docs(blog): prepare for v0.10 release post (#746)
* docs(blog): prepare for v0.10 release post

* Update v0.10.md

* Update v0.10.md to refine upgrade instructions and enhance blog features. Added synchronized tab switching and pagination controls, while improving the search experience and table of contents navigation.

* Enhance v0.10 release documentation with detailed upgrade instructions and migration guide. Added Tailwind theme variable customization section and clarified breaking changes. Improved clarity on CSS class prefix changes for better user experience.

* Update v0.10.md to enhance upgrade instructions, clarify breaking changes, and improve overall readability. Adjusted formatting for consistency and added details on asset management and user experience improvements.

* Add notable new features to v0.10.md, including dropdown menu support, enhanced search experience, and blog list pagination. Updated FlexSearch upgrade details for clarity and improved migration guide by removing redundant breaking change notes.

* chore: update zh-cn translation

* chore: update ja translation

* chore: update fa and ja translations

* chore: prepare release
2025-08-14 23:49:06 +08:00

1.4 KiB
Raw Blame History

title, linkTitle, sidebar, next
title linkTitle sidebar next
其他短代码 其他
exclude
true
/docs/guide/deploy-site

{{< callout emoji="" >}} 其中部分为Hugo内置短代码。 这些短代码稳定性较低,可能随时变更。 {{< /callout >}}

徽章

{{</* badge "徽章" */>}}

效果:

{{< badge "徽章" >}}

变体:

{{</* badge content="信息" type="info" */>}}
{{</* badge content="警告" type="warning" */>}}
{{</* badge content="错误" type="error" */>}}

效果:

{{< badge content="信息" type="info" >}}   {{< badge content="警告" type="warning" >}}   {{< badge content="错误" type="error" >}}

带链接和图标:

{{</* badge content="版本发布" link="https://github.com/imfing/hextra/releases" icon="github" */>}}

效果:

{{< badge content="版本发布" link="https://github.com/imfing/hextra/releases" icon="github" >}}

YouTube

嵌入YouTube视频。

{{</* youtube 视频ID */>}}

效果:

{{< youtube id=dQw4w9WgXcQ loading=lazy >}}

更多信息,请参阅 Hugo 的 YouTube 短代码

PDF

通过PDF短代码可在内容中嵌入PDF文件。

{{</* pdf "https://example.com/sample.pdf" */>}}

也可将PDF文件置于项目目录中并使用相对路径。

{{</* pdf "path/to/file.pdf" */>}}

示例:

{{< pdf "https://upload.wikimedia.org/wikipedia/commons/1/13/Example.pdf" >}}