如何将 MkDocs Material 图标添加到模板?
How to add MkDocs Material icons to templates?
MkDocs Material 附带了许多图标,可以很容易地在 markdown 中使用它们。您可以将 short-codes 放在 Markdown 中的任何位置,它们会完美呈现。
<!-- some markdown file -->
:smile:
:material-account-circle:
不过,我似乎无法弄清楚如何在 HTML 模板中使用这些图标。 MkDocsMaterial打包的图标如何在HTML模板中使用?
<!-- an HTML template used to render markdown -->
<span class="octicon octicon-clippy"></span> <!-- doesn't work -->
作者在这里。我刚刚在文档中添加了一个部分,介绍如何在模板中使用图标:
https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#using-icons-in-templates
MkDocs Material 附带了许多图标,可以很容易地在 markdown 中使用它们。您可以将 short-codes 放在 Markdown 中的任何位置,它们会完美呈现。
<!-- some markdown file -->
:smile:
:material-account-circle:
不过,我似乎无法弄清楚如何在 HTML 模板中使用这些图标。 MkDocsMaterial打包的图标如何在HTML模板中使用?
<!-- an HTML template used to render markdown -->
<span class="octicon octicon-clippy"></span> <!-- doesn't work -->
作者在这里。我刚刚在文档中添加了一个部分,介绍如何在模板中使用图标: https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#using-icons-in-templates