mirror of
https://github.com/wavetermdev/waveterm-docs.git
synced 2026-08-05 13:45:23 -07:00
Preload fontawesome font (#31)
This commit is contained in:
@@ -99,6 +99,18 @@ const config: Config = {
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Command Line Inc. Built with Docusaurus.`,
|
||||
},
|
||||
},
|
||||
headTags: [
|
||||
{
|
||||
tagName: "link",
|
||||
attributes: {
|
||||
rel: "preload",
|
||||
as: "font",
|
||||
type: "font/woff2",
|
||||
"data-next-font": "size-adjust",
|
||||
href: "/fontawesome/webfonts/fa-sharp-regular-400.woff2",
|
||||
},
|
||||
},
|
||||
],
|
||||
stylesheets: ["/fontawesome/css/fontawesome.min.css", "/fontawesome/css/sharp-regular.min.css"],
|
||||
staticDirectories: ["static"],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user