diff --git a/themes/hugo-theme-relearn/layouts/home/index.html b/themes/hugo-theme-relearn/layouts/home/index.html index f7d88765468cfdeacc9479f3bf68975b0b855f7d..fce9d0e48089b2f8b2c16e2235c84441c78f7a61 100644 --- a/themes/hugo-theme-relearn/layouts/home/index.html +++ b/themes/hugo-theme-relearn/layouts/home/index.html @@ -9,7 +9,7 @@ {{- partialCached "favicon.html" . }} <link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"> <link href="{{"css/home.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"> - <link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"> + <link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" onload="this.media='all';this.onload=null;"> {{ with .OutputFormats.Get "rss" -}} {{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML -}} {{ end }} diff --git a/themes/hugo-theme-relearn/static/css/fonts.css b/themes/hugo-theme-relearn/static/css/fonts.css index a7824348215841ab503babec504fcc21b037bc3c..732aa2c13fab832c587ee8570351c81ba0dbf483 100644 --- a/themes/hugo-theme-relearn/static/css/fonts.css +++ b/themes/hugo-theme-relearn/static/css/fonts.css @@ -38,26 +38,30 @@ font-display: swap; } @font-face{ - font-family:liberation sans; - font-style:normal; - font-weight:400; - src:local('Liberation Sans'),url(../fonts/LiberationSans-Regular.woff) format('woff') + font-family: 'Liberation Sans'; + font-style: normal; + font-weight: 400; + src: url("../fonts/LiberationSans-Regular.woff") format("woff"); + font-display: swap; } @font-face{ - font-family:liberation sans; - font-style:italic; - font-weight:400; - src:local('Liberation Sans'),url(../fonts/LiberationSans-Italic.woff) format('woff') + font-family: 'Liberation Sans'; + font-style: italic; + font-weight: 400; + src: url("../fonts/LiberationSans-Italic.woff") format("woff"); + font-display: swap; } @font-face{ - font-family:liberation sans; - font-style:normal; - font-weight:700; - src:local('Liberation Sans'),url(../fonts/LiberationSans-Bold.woff) format('woff') + font-family: 'Liberation Sans'; + font-style: normal; + font-weight: 700; + src: url("../fonts/LiberationSans-Bold.woff") format("woff"); + font-display: swap; } @font-face{ - font-family:liberation sans; - font-style:italic; - font-weight:700; - src:local('Liberation Sans'),url(../fonts/LiberationSans-BoldItalic.woff) format('woff') + font-family: 'Liberation Sans'; + font-style: italic; + font-weight: 700; + src: url("../fonts/LiberationSans-BoldItalic.woff") format("woff"); + font-display: swap; }