Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Preload fontawesome font (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz authored Sep 26, 2024
1 parent 51db6f4 commit 07ad618
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
};
Expand Down

0 comments on commit 07ad618

Please sign in to comment.