From 44705e17f7681633db57ff26c43ebb8d91e75483 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 18 Oct 2023 22:58:43 +0100 Subject: [PATCH] Fix font import and build js --- assets/css/baseof.css | 15 +++++++++++++-- content/_index.md | 2 ++ layouts/_default/baseof.html | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/assets/css/baseof.css b/assets/css/baseof.css index b9f842d..2b09541 100644 --- a/assets/css/baseof.css +++ b/assets/css/baseof.css @@ -1,5 +1,16 @@ -@import url("../fonts/OpenSans.ttf"); -@import url("../fonts/OpenSans-Italic.ttf"); +@font-face { + font-family: 'Open Sans'; + src: url('/fonts/OpenSans.ttf') format('ttf'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'Open Sans'; + src: url('/fonts/OpenSans-Italic.ttf') format('ttf'); + font-weight: normal; + font-style: italic; +} :root { /* Colors */ diff --git a/content/_index.md b/content/_index.md index 349fc31..7ae040f 100644 --- a/content/_index.md +++ b/content/_index.md @@ -5,3 +5,5 @@ date: 2023-10-18T20:03:43+01:00 # Hazem Krimi +*Hi!* + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3d2aff4..73dc785 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ {{ $styles := resources.Get "css/baseof.css" | toCSS | minify | fingerprint }} -{{ $scripts := resources.Get "js/baseof.js" | minify | fingerprint }} +{{ $scripts := resources.Get "js/baseof.js" | js.Build | minify | fingerprint }}