Browse Source

changing how remote fonts are pulled to see if it improves performance

master
jk 4 years ago
parent
commit
95d30884f2
  1. 2
      themes/nipponalba/layouts/partials/head.html
  2. 2
      themes/nipponalba/static/css/style.css

2
themes/nipponalba/layouts/partials/head.html

@ -6,6 +6,8 @@
<meta name="description" content="{{ .Site.Params.description }}"> <meta name="description" content="{{ .Site.Params.description }}">
<link rel="stylesheet" href="{{ `css/style.css` | absURL }}" type="text/css"> <link rel="stylesheet" href="{{ `css/style.css` | absURL }}" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
<link rel="preload" as="font" href="https://rsms.me/inter/fonts/Inter-Regular.woff2=3.15" type="font/woff2" crossorigin="anonymous" />
<link rel="preload" as="font" href="https://rsms.me/inter/fonts/Inter-Regular.woff=3.15" type="font/woff" crossorigin="anonymous" />
<base href="{{ .Site.BaseURL }}"> <base href="{{ .Site.BaseURL }}">
<!-- indieweb stuff --> <!-- indieweb stuff -->
<link rel="me" href="https://social.nipponalba.scot/users/jk" /> <link rel="me" href="https://social.nipponalba.scot/users/jk" />

2
themes/nipponalba/static/css/style.css

@ -1,5 +1,5 @@
@charset "UTF-8"; @charset "UTF-8";
@import url('https://rsms.me/inter/inter.css');
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+000-5FF; src: local('Inter'), url('https://rsms.me/inter/fonts/Inter-Regular.woff2?v=3.15') format('woff2'), url('https://rsms.me/inter/fonts/Inter-Regular.woff=3.15') format('woff');}
html { font-family: 'Inter', sans-serif;} html { font-family: 'Inter', sans-serif;}
@supports (font-variation-settings: normal) { @supports (font-variation-settings: normal) {
html { font-family: 'Inter var', sans-serif; } html { font-family: 'Inter var', sans-serif; }