summaryrefslogtreecommitdiff
path: root/html/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'html/default.nix')
-rw-r--r--html/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/html/default.nix b/html/default.nix
index b001d91..b68ad07 100644
--- a/html/default.nix
+++ b/html/default.nix
@@ -1,6 +1,13 @@
{ html, make, ... }:
-let sections = html.sort.byKey "priority" (make ./sections.nix { });
+let
+ sections = html.sort.byKey "priority" (make ./sections.nix { });
+ preloadFont = href:
+ html.linkWith {
+ inherit href;
+ rel = "preload";
+ as = "font";
+ };
in with html;
html.html { lang = "en"; } [
(head [
@@ -29,6 +36,8 @@ html.html { lang = "en"; } [
rel = "stylesheet";
href = "/static/css/fonts/line-awesome/line-awesome.min.css";
})
+ (preloadFont "/static/css/fonts/line-awesome/webfonts/la-solid-900.woff2")
+ (preloadFont "/static/css/fonts/line-awesome/webfonts/la-brands-400.woff2")
# CSS
(linkWith {
rel = "stylesheet";